Re: bogus error message for ALTER TABLE ALTER CONSTRAINT

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Álvaro Herrera <alvherre@alvh.no-ip.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pg Hackers <pgsql-hackers@lists.postgresql.org>, Peter Eisentraut <peter@eisentraut.org>, Nathan Bossart <nathandbossart@gmail.com>
Date: 2025-03-10T17:58:44Z
Lists: pgsql-hackers

Attachments

Hello,

I fleshed this out more fully and I think 0001 is good enough to commit.

I then noticed that constraints on domains are giving bogus error
messages as well, and the situation is easily improved -- see 0002.  I'm
not so sure about this one, mainly because test coverage appears scant.
I need to look into this one a bit more.

Thanks

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/

Commits

  1. Fix bogus grammar for a CREATE CONSTRAINT TRIGGER error

  2. Fix ALTER TABLE error message