Re: incorrect (incomplete) description for "alter domain" - Mailing list pgsql-docs

From Bruce Momjian
Subject Re: incorrect (incomplete) description for "alter domain"
Date
Msg-id ZyUV6GXxWZjeUe5r@momjian.us
Whole thread Raw
In response to incorrect (incomplete) description for "alter domain"  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
On Wed, Oct 16, 2024 at 05:11:54PM -0400, Bruce Momjian wrote:
> > Actually, there *is* a bug in the description, because experimentation
> > shows that CREATE DOMAIN accepts NULL in this syntax (as advertised)
> > but ALTER DOMAIN does not.  We could alternatively decide that that's
> > a code bug and make ALTER DOMAIN take it, but I don't think it's worth
> > any effort (and this behavior may actually have been intentional, too).
> > I think we should just add
> > 
> >     where domain_constraint is:
> > 
> >     [ CONSTRAINT constraint_name ]
> >     { NOT NULL | CHECK (expression) }
> > 
> > to the ALTER DOMAIN page, and then remove the claim that it's
> > identical to CREATE DOMAIN.
> 
> I have written the attached patch to document this.  I assume this
> should be backpatched to PG 12.

Patch applied back to PG 12.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  When a patient asks the doctor, "Am I going to die?", he means 
  "Am I going to die soon?"



pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Documentation of .pgpass for Unix is incomplete
Next
From: Marc Balmer
Date:
Subject: Re: Documentation of .pgpass for Unix is incomplete