Re: Optimize commit performance with a large number of 'on commit delete rows' temp tables

feichanghong <feichanghong@qq.com>

From: feichanghong <feichanghong@qq.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-07-05T19:39:41Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Lift limitation that PGPROC->links must be the first field

Attachments

The patch in the attachment, compared to the previous one, adds a threshold for
using the bloom filter. The current ON_COMMITS_FILTER_THRESHOLD is set to 64,
which may not be the optimal value. Perhaps this threshold could be configured
as a GUC parameter?


Best Regards,
Fei Changhong