Re: Auto creation of Partitions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Auto creation of Partitions
Дата
Msg-id 7004.1173206665@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Auto creation of Partitions  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Auto creation of Partitions  (Josh Berkus <josh@agliodbs.com>)
Re: Auto creation of Partitions  (Andrew Dunstan <andrew@dunslane.net>)
Re: Auto creation of Partitions  (NikhilS <nikkhils@gmail.com>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> But when I say
> CREATE TABLE ( a int PRIMARY KEY, ... ) PARTITION blah ...
> then I expect that the primary key will be enforced across all 
> partitions.  We currently sidestep that issue by not offering seemingly 
> transparent partitioning.  But if you are planning to offer that, the 
> unique index issue needs to be solved, and I see nothing in your plan 
> about that.

Agreed, it needs to Just Work.  I think it'd still be useful though
if we only support auto-partitioning on the primary key, and that
restriction avoids the indexing problem.
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Auto creation of Partitions
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: [JDBC] Plan invalidation vs. unnamed prepared statements