pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Move pg_stat_statements query jumbling to core.
Date: Wed, 07 Apr 2021 17:06:59 +0000
Message-ID: <E1lUBdr-0000k6-N8@gemulon.postgresql.org> (raw)

Move pg_stat_statements query jumbling to core.

Add compute_query_id GUC to control whether a query identifier should be
computed by the core (off by default).  It's thefore now possible to
disable core queryid computation and use pg_stat_statements with a
different algorithm to compute the query identifier by using a
third-party module.

To ensure that a single source of query identifier can be used and is
well defined, modules that calculate a query identifier should throw an
error if compute_query_id specified to compute a query id and if a query
idenfitier was already calculated.

Discussion: https://postgr.es/m/20210407125726.tkvjdbw76hxnpwfi@nol

Author: Julien Rouhaud

Reviewed-by: Alvaro Herrera, Nitin Jadhav, Zhihong Yu

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5fd9dfa5f50e4906c35133a414ebec5b6d518493

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c    | 805 +-------------------
contrib/pg_stat_statements/pg_stat_statements.conf |   1 +
doc/src/sgml/config.sgml                           |  25 +
doc/src/sgml/pgstatstatements.sgml                 |  20 +-
src/backend/parser/analyze.c                       |  14 +-
src/backend/tcop/postgres.c                        |   6 +-
src/backend/utils/misc/Makefile                    |   1 +
src/backend/utils/misc/guc.c                       |  10 +
src/backend/utils/misc/postgresql.conf.sample      |   1 +
src/backend/utils/misc/queryjumble.c               | 834 +++++++++++++++++++++
src/include/parser/analyze.h                       |   4 +-
src/include/utils/guc.h                            |   1 +
src/include/utils/queryjumble.h                    |  58 ++
13 files changed, 995 insertions(+), 785 deletions(-)



view thread (12+ messages)  latest in thread

Message-ID: <E1lUBdr-0000k6-N8@gemulon.postgresql.org>
Permalink:  ../E1lUBdr-0000k6-N8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lUBdr-0000k6-N8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: bruce@momjian.us
  Subject: Re: pgsql: Move pg_stat_statements query jumbling to core.
  In-Reply-To: <E1lUBdr-0000k6-N8@gemulon.postgresql.org>
  References: <E1lUBdr-0000k6-N8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox