Re: Disabling an index temporarily

Поиск
Список
Период
Сортировка
От Bill Moran
Тема Re: Disabling an index temporarily
Дата
Msg-id 20151213222356.d9c3faab8f7c64d1e45e4b42@potentialtech.com
обсуждение исходный текст
Ответ на Re: Disabling an index temporarily  (Corey Huinker <corey.huinker@gmail.com>)
Ответы Re: Disabling an index temporarily  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Disabling an index temporarily  (Corey Huinker <corey.huinker@gmail.com>)
Список pgsql-hackers
On Sun, 13 Dec 2015 22:15:31 -0500
Corey Huinker <corey.huinker@gmail.com> wrote:

> ALTER TABLE foo DISABLE [NONUNIQUE] INDEXES
> -- same, but joining to pg_class and possibly filtering on indisunique

I would think that NONUNIQUE should be the default, and you should have
to specify something special to also disable unique indexes. Arguably,
unique indexes are actually an implementation detail of unique
constraints. Disabling a performance-based index doesn't cause data
corruption, whereas disabling an index created as part of unique
constraint can allow invalid data into the table.

Just my $.02 ...

-- 
Bill Moran



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

Предыдущее
От: Corey Huinker
Дата:
Сообщение: Re: Disabling an index temporarily
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Disabling an index temporarily