Re: compute_query_id and pg_stat_statements
Julien Rouhaud <rjuju123@gmail.com>
From: Julien Rouhaud <rjuju123@gmail.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: Michael Paquier <michael@paquier.xyz>, Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@alvh.no-ip.org>, Stephen Frost <sfrost@snowman.net>, Bruce Momjian <bruce@momjian.us>, Christoph Berg <myon@debian.org>, Peter Eisentraut <peter.eisentraut@enterprisedb.com>, Fujii Masao <masao.fujii@oss.nttdata.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-05-11T07:49:47Z
Lists: pgsql-hackers
On Tue, May 11, 2021 at 09:43:25AM +0200, Magnus Hagander wrote: > > 30 second review -- wouldn't it be cleaner to keep a separate boolean > telling the backend "include it or not", which is set to true/false in > the guc assign hook and can then be flipped from false->true in > queryIdWanted()? (I'd suggest a more verbose name for that function > btw, something like requestQueryIdGeneration() or so). > > (Again, just the 30 second review between meetings, so maybe I'm completely off) It it surely would, but then that variable would need to be explicitly handled as it wouldn't be automatically inherited on Windows and EXEC_BACKEND right?
Commits
-
Allow compute_query_id to be set to 'auto' and make it default
- cafde58b337e 14.0 landed
-
Move pg_stat_statements query jumbling to core.
- 5fd9dfa5f50e 14.0 cited