pgsql: Error position support for defaults and check constraints

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Error position support for defaults and check constraints
Date: 2018-08-30 06:35:15
Message-ID: E1fvGXz-0000iA-P5@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)cri(dot)ensmp(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2018-08-30 08:43:35 pgsql: Mention change of width of values generated by SERIAL sequences
Previous Message Heikki Linnakangas 2018-08-30 06:14:15 pgsql: Fix IndexInfo comments.