]> granicus.if.org Git - postgresql/commit
Error position support for defaults and check constraints
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 22 Aug 2018 06:42:49 +0000 (08:42 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 30 Aug 2018 06:20:23 +0000 (08:20 +0200)
commita4a232b1e70229a6ba0e592f6775c019bb171d9a
tree32da1b78844852199c1c620a968b95cf412a8aaf
parent4b035841a1bcaadbe4f9e0e174aef773a4fa41f6
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>
src/backend/catalog/heap.c
src/backend/commands/tablecmds.c
src/include/catalog/heap.h
src/test/regress/output/constraints.source