Re: Multixact wraparound monitoring

Поиск
Список
Период
Сортировка
От Wyatt Alt
Тема Re: Multixact wraparound monitoring
Дата
Msg-id CAGem3qCO7ny4H96h1Bs3a_3UVGBQCoBQCo5Ds2nR=egO93G-qw@mail.gmail.com
обсуждение исходный текст
Ответ на Multixact wraparound monitoring  (bruno da silva <brunogiovs@gmail.com>)
Список pgsql-performance


On Wed, Sep 13, 2023 at 8:29 AM bruno da silva <brunogiovs@gmail.com> wrote:

are foreign keys a big source of multixact IDs so not recommended on tables with a lot of data and a lot of churn? 

I am curious to hear other answers or if anything has changed. I experienced this problem a couple of times on PG 11. In each situation my setup looked something like this:

create table small(id int primary key, data text);
create table large(id bigint primary key, small_id int references small(id));

Table large is hundreds of GB or more and accepting heavy writes in batches of 1K records, and every batch contains exactly one reference to each row in small (every batch references the same 1K rows in small).

The only way I was able to get around problems with multixact member ID wraparound was dropping the foreign key constraint.

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

Предыдущее
От: bruno da silva
Дата:
Сообщение: Multixact wraparound monitoring
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Multixact wraparound monitoring