Re: bogus error message for ALTER TABLE ALTER CONSTRAINT - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: bogus error message for ALTER TABLE ALTER CONSTRAINT
Date
Msg-id 202503111446.3ht6hlgszavl@alvherre.pgsql
Whole thread Raw
In response to Re: bogus error message for ALTER TABLE ALTER CONSTRAINT  (jian he <jian.universality@gmail.com>)
List 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/



pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: Non-text mode for pg_dumpall
Next
From: Jeremy Schneider
Date:
Subject: Re: protocol support for labels