Re: Comments on Custom RMGRs
Danil Anisimow <anisimow.d@gmail.com>
From: Danil Anisimow <anisimow.d@gmail.com>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Simon Riggs <simon.riggs@enterprisedb.com>,
Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-02-29T14:47:57Z
Lists: pgsql-hackers
On Tue, Feb 27, 2024 at 2:56 AM Jeff Davis <pgsql@j-davis.com> wrote: > Let's pick this discussion back up, then. Where should the hook go? > Does it need to be broken into phases like resource owners? What > guidance can we provide to extension authors to use it correctly? > > Simon's right that these things don't need to be 100% answered for > every hook we add; but I agree with Andres and Robert that this could > benefit from some more discussion about the details. > > The proposal calls the hook right after CheckPointPredicate() and > before CheckPointBuffers(). Is that the right place for the use case > you have in mind with pg_stat_statements? Hello! Answering your questions might take some time as I want to write a sample patch for pg_stat_statements and make some tests. What do you think about putting the patch to commitfest as it closing in a few hours? -- Regards, Daniil Anisimov Postgres Professional: http://postgrespro.com