Thread: pgsql: Error position support for defaults and check constraints

pgsql: Error position support for defaults and check constraints

From
Peter Eisentraut
Date:
Error position support for defaults and check constraints

Add support for error position reporting for the expressions contained
in defaults and check constraint definitions.  This currently works only
for CREATE TABLE, not ALTER TABLE, because the latter is not set up to
pass around the original query string.

Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a4a232b1e70229a6ba0e592f6775c019bb171d9a

Modified Files
--------------
src/backend/catalog/heap.c                 | 4 +++-
src/backend/commands/tablecmds.c           | 9 +++++----
src/include/catalog/heap.h                 | 3 ++-
src/test/regress/output/constraints.source | 2 ++
4 files changed, 12 insertions(+), 6 deletions(-)