Re: table vs. column constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: table vs. column constraints
Дата
Msg-id 23157.1018296574@sss.pgh.pa.us
обсуждение исходный текст
Ответ на table vs. column constraints  (Tim Wilson <wilson@isis.visi.com>)
Список pgsql-novice
Tim Wilson <wilson@isis.visi.com> writes:
> I'm having trouble understanding when to use table constraints vs.
> column ones.

There's no functional difference --- if you have a constraint that only
involves one column, you can write it either way.  Do what seems easier
to understand.

I believe pg_dump will dump all constraints as table constraints, so in
the long run it may not make any difference anyway ;-)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to turn off referential integrity
Следующее
От: "Juliet May"
Дата:
Сообщение: [Novice] questions on pg_hba.conf and stopping postmaster in cygwin