Re: memory leak in pgoutput

by Yang <mobile.yang@outlook.com>

From: by Yang <mobile.yang@outlook.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>, "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Date: 2024-11-19T07:08:26Z
Lists: pgsql-hackers

Attachments

> By the way, if possible, could you send an updated version of the
> patch to show what you have in mind?
Yeah, here is the new patch:

I have verifed that this patch works for REL_[15-17]_STABLE and master.
The memory consumption of "logical replication cache context" remains
consistently at 112 MB during the benchmark mentioned above.
> sysbench oltp_write_only --db-driver=pgsql \
>     --pgsql-port=5432 \
>     --pgsql-db=postgres \
>     --pgsql-user=postgres \
>     --tables=15000 --table_size=100 \
>     --report-interval=1 \
>     --threads=10 run \
>     --time=180

Commits

  1. Fix memory leak in pgoutput for the WAL sender