DROP CONSTRAINT (UNIQUE) preliminary support

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема DROP CONSTRAINT (UNIQUE) preliminary support
Дата
Msg-id ECEHIKNFIMMECLEBJFIGAENICAAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответы Re: DROP CONSTRAINT (UNIQUE) preliminary support
Re: DROP CONSTRAINT (UNIQUE) preliminary support
Re: DROP CONSTRAINT (UNIQUE) preliminary support
Список pgsql-patches
Hi all,

This patch allows ALTER TABLE/DROP CONSTRAINT to drop UNIQUE constraints by
dropping the relevant index.

This is a prelim patch that I need comment on (The @@ comments), and I've
edited some things out by hand, so I don't recommend applying it to anything
just yet.

I have added an IsIndex function to indexcmds.c and a RemoveUniqueConstraint
to heap.c, plus modified command.c's AlterTableDropConstraint function to
call RemoveUniqueConstraint.

Note that I have disabled inheritance support for unique constraints - since
it's impossible to have two indices of the same name anyway...

Comments please.

Chris

Вложения

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