Re: incorrect (incomplete) description for "alter domain"

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: incorrect (incomplete) description for "alter domain"
Дата
Msg-id e0e8271f-687d-4eef-bce0-b706165930b0@ewie.name
обсуждение исходный текст
Ответ на incorrect (incomplete) description for "alter domain"  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On 2024-07-29 13:02 +0200, PG Doc comments form wrote:
> In the Synopsis section of
> https://www.postgresql.org/docs/current/sql-alterdomain.html
> this is incorrect (incomplete):
> "ALTER DOMAIN name ADD domain_constraint [ NOT VALID ]"
> It should be 
> "ALTER DOMAIN name ADD CONSTRAINT domain_constraint [ NOT VALID ]"

No, the docs are correct.  domain_constraint refers to this syntax
defined by CREATE DOMAIN:

    "where constraint is:

    [ CONSTRAINT constraint_name ]
    { NOT NULL | NULL | CHECK (expression) }"

Also, PG 17 renames this to "domain_constraint" with commit 9895b35cb8
to align ALTER DOMAIN with CREATE DOMAIN.

-- 
Erik



В списке pgsql-docs по дате отправления: