Re: [HACKERS] Documentation improvements for partitioning

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Documentation improvements for partitioning
Дата
Msg-id 16559.1487178678@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Documentation improvements for partitioning  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Robert Haas wrote:
>> True.  I think the question here is: do we want to view the dependency
>> between a partitioned table and a partition of that table as
>> DEPENDENCY_NORMAL or as DEPENDENCY_AUTO?  With table inheritance, it's
>> always been "normal" and I'm not sure there's any good reason for
>> partitioning to make the opposite decision.

> I think new-style partitioning is supposed to consider each partition as
> an implementation detail of the table; the fact that you can manipulate
> partitions separately does not really mean that they are their own
> independent object.  You don't stop to think "do I really want to drop
> the TOAST table attached to this main table?" and attach a CASCADE
> clause if so.  You just drop the main table, and the toast one is
> dropped automatically.  I think new-style partitions should behave
> equivalently.

I agree with Alvaro's position.  If you need CASCADE to get rid of the
individual partitions, that's going to be a serious usability fail.
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] error handling in RegisterBackgroundWorker
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Should we cacheline align PGXACT?