Re: Patch: Global Unique Index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch: Global Unique Index
Дата
Msg-id 2187643.1668783992@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re:Patch: Global Unique Index  (Sergei Kornilov <sk@zsrv.org>)
Ответы Re: Patch: Global Unique Index  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Patch: Global Unique Index  (Thomas Kellerer <shammat@gmx.net>)
Список pgsql-hackers
Sergei Kornilov <sk@zsrv.org> writes:
> Do we need new syntax actually? I think that a global unique index can be created automatically instead of raising an
error"unique constraint on partitioned table must include all partitioning columns" 

I'm not convinced that we want this feature at all: as far as I can see,
it will completely destroy the benefits of making a partitioned table
in the first place.  But if we do want it, I don't think it should be
so easy to create a global index by accident as that syntax approach
would make it.  I think there needs to be a pretty clear YES I WANT TO
SHOOT MYSELF IN THE FOOT clause in the command.

            regards, tom lane



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: CREATE UNLOGGED TABLE seq faults when debug_discard_caches=1
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Patch: Global Unique Index