Re: cataloguing NOT NULL constraints

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: cataloguing NOT NULL constraints
Дата
Msg-id 1311367030-sup-9426@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: cataloguing NOT NULL constraints  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: cataloguing NOT NULL constraints
Список pgsql-hackers
Excerpts from Robert Haas's message of vie jul 22 12:14:30 -0400 2011:
> On Thu, Jul 21, 2011 at 7:51 PM, Alvaro Herrera
> <alvherre@commandprompt.com> wrote:
> >> I think that there probably ought to be a way to display the NOT NULL
> >> constraint names (perhaps through \d+). For example, if you're
> >> planning to support NOT VALID on top of this in the future, then there
> >> needs to be a way to get the constraint's name to validate it.
> >
> > Absolutely true.  Another thing that needs to be done here is to let the
> > ALTER TABLE and ALTER DOMAIN commands use the constraint names; right
> > now, they simply let you add the constraint but not specify the name.
> > That should probably be revisited.
> 
> That, at least, seems like something that should be fixed before commit.

Hmm, which point, Dean's or mine?  Dean was saying that the name should
be displayed by some flavor of \d; mine was that we need a command such
as

ALTER TABLE foo ALTER COLUMN bar SET NOT NULL name_of_notnull_constr

where the last bit is what's new.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Deferred partial/expression unique constraints
Следующее
От: Robert Haas
Дата:
Сообщение: pgbench --unlogged-tables