Re: Should this require CASCADE?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Should this require CASCADE?
Дата
Msg-id GNELIHDDFBOCMGBFGEFOGEBICDAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Should this require CASCADE?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Should this require CASCADE?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
With all this dependency stuff, what happens with the ALTER TABLE / DROP NOT
NULL syntax we came up with?

Maybe we should allow RESTRICT/CASCADE on that syntax and if restrict is
specified, you can't drop it if a primary key depends on it and if cascade
is specified it will drop the primary key...

Just for consistency...

Also, when talking about whether or not the index supporting a constraint
should be sort of 'hidden' from the user, should not we change pg_dump to
dump unique indices using the ALTER TABLE syntax, rather than the CREATE
UNIQUE INDEX syntax?  Otherwise this information will be lost.

Chris



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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: bugzilla.pgaccess.org
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: [PATCHES] Changes in /contrib/fulltextindex