Re: Postgresql 14 partitioning advice

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Postgresql 14 partitioning advice
Дата
Msg-id CAMkU=1zffUC_Yrp2xvsWPAKg5f9A3SjdfopiUcasmjsO6mQoaA@mail.gmail.com
обсуждение исходный текст
Ответ на Postgresql 14 partitioning advice  (Rick Otten <rottenwindfish@gmail.com>)
Список pgsql-performance
On Wed, Jul 27, 2022 at 8:55 AM Rick Otten <rottenwindfish@gmail.com> wrote:

One person I talked to said "try not to have more than 100 partitions", even with the latest postgresql you'll end up with a lot of lock contention if you go over 100 partitions.


It is hard to know how seriously to take the advice of anonymous people accompanied with such sparse justification.  Meanwhile, people who actually wrote the code seem to think that this problem has been mostly overcome with declarative partitioning in the newer versions.

When you do decide to start removing the oldest data, how will you do it?  Your partitioning should probably be designed to align with this.

Since the data most frequently queried would be recent data (say the past month or so)

Is this done specifically with a time clause, or just by criteria which happen to align with time, but have no formal relationship with it?

Cheers,

Jeff

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: alter table xxx set unlogged take long time
Следующее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: alter table xxx set unlogged take long time