Re: compute_query_id and pg_stat_statements - Mailing list pgsql-hackers

From Tom Lane
Subject Re: compute_query_id and pg_stat_statements
Date
Msg-id 2267128.1619456173@sss.pgh.pa.us
Whole thread Raw
In response to Re: compute_query_id and pg_stat_statements  (Stephen Frost <sfrost@snowman.net>)
Responses Re: compute_query_id and pg_stat_statements
Re: compute_query_id and pg_stat_statements
Re: compute_query_id and pg_stat_statements
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> * Bruce Momjian (bruce@momjian.us) wrote:
>> Techically, pg_stat_statements can turn on compute_query_id when it is
>> loaded, even if it is 'off' in postgresql.conf, right?  And
>> pg_stat_statements would know if an alternate hash method is being used,
>> right?

> +1 on this approach.

That'd make it impossible to turn off or adjust afterwards, wouldn't it?
I'm afraid the confusion stemming from that would outweigh any simplicity.

I would be in favor of logging a message at startup to the effect of
"this is misconfigured" (as per upthread discussion), although whether
people would see that is uncertain.

In the end, it's not like this is the first time we've ever made an
incompatible change in configuration needs; and it won't be the last
either.  I don't buy the argument that pg_stat_statements users can't
cope with adding the additional setting.  (Of course, we should be
careful to call it out as an incompatible change in the release notes.)

            regards, tom lane



pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: Does rewriteTargetListIU still need to add UPDATE tlist entries?
Next
From: Pavel Stehule
Date:
Subject: ERROR: relation "sql_features" does not exist