Allow compute_query_id to be set to 'auto' and make it default
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 15 May 2021 18:13:09 +0000 (14:13 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 15 May 2021 18:13:09 +0000 (14:13 -0400)
commitcafde58b337e007cb6a719f5ab4dd6459d932a39
tree4c91ed4a899e03f7b9f0f5cadf01f2eb8d9cb950
parent30d8bad494ad1f604295033e4f4de4b8f258fe74
Allow compute_query_id to be set to 'auto' and make it default

Allowing only on/off meant that all either all existing configuration
guides would become obsolete if we disabled it by default, or that we
would have to accept a performance loss in the default config if we
enabled it by default.  By allowing 'auto' as a middle ground, the
performance cost is only paid by those who enable pg_stat_statements and
similar modules.

I only edited the release notes to comment-out a paragraph that is now
factually wrong; further edits are probably needed to describe the
related change in more detail.

Author: Julien Rouhaud <rjuju123@gmail.com>
Reviewed-by: Justin Pryzby <pryzby@telsasoft.com>
Discussion: https://postgr.es/m/20210513002623.eugftm4nk2lvvks3@nol
14 files changed:
contrib/pg_stat_statements/pg_stat_statements.c
contrib/pg_stat_statements/pg_stat_statements.conf
doc/src/sgml/config.sgml
doc/src/sgml/pgstatstatements.sgml
doc/src/sgml/release-14.sgml
src/backend/commands/explain.c
src/backend/parser/analyze.c
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/queryjumble.c
src/include/utils/guc.h
src/include/utils/queryjumble.h