Re: Race condition while creating a new partition

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Race condition while creating a new partition
Дата
Msg-id CAHOFxGorW7ERZOg8ajUFLNWMsZ=dGXGg1CwSJ1Dnn-umQiKOCA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Race condition while creating a new partition  (Justin <zzzzz.graf@gmail.com>)
Ответы Re: Race condition while creating a new partition  (Andrei Zhidenkov <andrei.zhidenkov@n26.com>)
Список pgsql-general
It looks like you are creating a partition for each minute of the day (when logs get inserted for a given minute at least). Would it be at all reasonable to have an hourly or daily job which creates the partitions ahead of when they are actually needed? If partitions went unused in the recent past, you could also drop those if appropriate to your workflow. I just wonder about doing the work just-in-time via 2+ connections vs doing it from a single process to avoid the chance of deadlock completely.

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

Предыдущее
От: Sar
Дата:
Сообщение: Experiencing error during restore - found unexpected block ID (0)
Следующее
От: Andrei Zhidenkov
Дата:
Сообщение: Re: Race condition while creating a new partition