pgsql: Error position support for defaults and check constraints - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Error position support for defaults and check constraints
Date
Msg-id E1fvGXz-0000iA-P5@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix IndexInfo comments.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Mention change of width of values generated by SERIAL sequences