pgsql: Log all statements from a sample of transactions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Log all statements from a sample of transactions
Date: 2019-04-03 21:59:22
Message-ID: E1hBnuk-0007oV-5h@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log all statements from a sample of transactions

This is useful to obtain a view of the different transaction types in an
application, regardless of the durations of the statements each runs.

Author: Adrien Nayrat
Reviewed-by: Masahiko Sawada, Hayato Kuroda, Andres Freund

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/799e220346f1387e823a4dbdc3b1c8c3cdc5c3e0

Modified Files
--------------
doc/src/sgml/config.sgml | 26 ++++++++++++++++++++++++++
src/backend/access/transam/xact.c | 8 ++++++++
src/backend/tcop/postgres.c | 8 +++++---
src/backend/utils/misc/guc.c | 13 +++++++++++++
src/backend/utils/misc/postgresql.conf.sample | 4 ++++
src/include/access/xact.h | 3 +++
src/include/utils/guc.h | 1 +
7 files changed, 60 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2019-04-03 22:22:20 pgsql: Add SETTINGS option to EXPLAIN, to print modified settings.
Previous Message Tom Lane 2019-04-03 21:16:21 pgsql: Remove now-unnecessary thread pointer arguments in pgbench.