> 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
v2-0001-Fix-memory-leak-in-pgoutput.patch
Description: v2-0001-Fix-memory-leak-in-pgoutput.patch