Re: Logical Replica ReorderBuffer Size Accounting Issues

Поиск
Список
Период
Сортировка
От Alex Richman
Тема Re: Logical Replica ReorderBuffer Size Accounting Issues
Дата
Msg-id CAMnUB3qVvWazGHxtC1emxEaTnU28N+CznabVRMbqfNQq9kf9fw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Logical Replica ReorderBuffer Size Accounting Issues  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы RE: Logical Replica ReorderBuffer Size Accounting Issues
Список pgsql-bugs

Do you have any sample data to confirm
this? If you can't share sample data, can you let us know the average
tuple size?

I suspect the writes are updates to jsonb columns.  I can correlate bursts of writes of this form to the memory spikes:
UPDATE suspect_table
  SET jsonb_column = jsonb_column || $1,
         updated_at = $2
  WHERE ...

The update being added in $1 is typically a single new field.  The jsonb column is flat string key/value pairs, e.g. lots of {"key": "value", ...}.

The average size of the whole tuple in the suspect table is ~800 bytes (based on 10000 random samples), of which the jsonb column is 80%.

I have been trying to break into a walsender to inspect some tuple bufs directly and compare the ChangeSize vs GetTupleBuf size as you suggest, but it's proving a little tricky - I'll let you know if I have any luck here.

Thanks,
- Alex.
 

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

Предыдущее
От: Alex Richman
Дата:
Сообщение: Re: Segfault while creating logical replication slots on active DB 14.6-1 + 15.1-1
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17738: There is a typo on your website