aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvalidate.c
diff options
context:
space:
mode:
authorÁlvaro Herrera <alvherre@kurilemu.de>2025-07-02 17:02:27 +0200
committerÁlvaro Herrera <alvherre@kurilemu.de>2025-07-02 17:02:27 +0200
commitc989affb527d330898e92e6223e2218e702176ed (patch)
tree5221a3a1293193588f1b954f0c0e4cf144ea1b4c /src/backend/access/gist/gistvalidate.c
parentbd3f59fdb71721921bb0aca7e16d483f72e95779 (diff)
downloadpostgresql-c989affb527d330898e92e6223e2218e702176ed.tar.gz
postgresql-c989affb527d330898e92e6223e2218e702176ed.zip
Fix error message for ALTER CONSTRAINT ... NOT VALID
Trying to alter a constraint so that it becomes NOT VALID results in an error that assumes the constraint is a foreign key. This is potentially wrong, so give a more generic error message. While at it, give CREATE CONSTRAINT TRIGGER a better error message as well. Co-authored-by: jian he <jian.universality@gmail.com> Co-authored-by: Fujii Masao <masao.fujii@oss.nttdata.com> Co-authored-by: Álvaro Herrera <alvherre@kurilemu.de> Co-authored-by: Amul Sul <sulamul@gmail.com> Discussion: https://postgr.es/m/CACJufxHSp2puxP=q8ZtUGL1F+heapnzqFBZy5ZNGUjUgwjBqTQ@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions