Re: compute_query_id and pg_stat_statements
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>,
Magnus Hagander <magnus@hagander.net>, Fujii Masao <masao.fujii@oss.nttdata.com>,
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>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-05-12T06:58:45Z
Lists: pgsql-hackers
st 12. 5. 2021 v 8:10 odesílatel Julien Rouhaud <rjuju123@gmail.com> napsal: > On Wed, May 12, 2021 at 07:49:13AM +0200, Pavel Stehule wrote: > > > > > Ah, I missed that case. And we are wanting to use pg_stat_statements > > > with (almost) zero-config? How about the following behavior? > > > > > > > > Until now, the pg_stat_statements was zero-config. So the change is not > > user friendly. > > Apart from configuring shared_preload_libraries, but agreed. > > > The idea so pg_stat_statements requires enabled computed_query_id is not > > good. There should be dependency only on the queryid column. > > I agree that requiring to change compute_query_id when you already added > pg_stat_statements in shared_preload_libraries isn't good, and the patch I > sent > yesterday would fix that. > I don't like the idea of implicit force enabling any feature flag, but it is better than current design. But it doesn't look like a robust solution. Does it mean that if somebody disables computed_query_id, then pg_stat_statements will not work? Why is there the strong dependency between computed_query_id and pg_stat_statements? Can this dependency be just optional? Regards Pavel
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