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: jian he <jian.universality@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Pg Hackers <pgsql-hackers@lists.postgresql.org>,
Peter Eisentraut <peter@eisentraut.org>, Nathan Bossart <nathandbossart@gmail.com>
Date: 2025-03-11T14:46:52Z
Lists: pgsql-hackers
On 2025-Mar-11, jian he wrote: > but it's better to align CREATE DOMAIN with ALTER DOMAIN. > For example, the following two logic should behave the same. > > create domain d_int as int4 constraint nn1 not null initially immediate; > alter domain d_int add constraint nn1 not null initially immediate; Sure, they should. > Also if we do not error out, then in the create_domain.sgml, alter_domain.sgml > <synopsis> section we should include these "useless" keywords. Yeah, I guess we should do that. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
Commits
-
Fix bogus grammar for a CREATE CONSTRAINT TRIGGER error
- 87251e114967 19 (unreleased) landed
-
Fix ALTER TABLE error message
- bf1e2d2db510 15.13 landed
- 9ea5fe5b6c80 16.9 landed
- 931a1c023790 14.18 landed
- 7bbc46213de9 18.0 landed
- 4e026be5f159 17.5 landed
- 0f354e0805ed 13.21 landed