postgres/src/backend
Bruce Momjian 4f0b0966c8 Make use of in-core query id added by commit 5fd9dfa5f5
Use the in-core query id computation for pg_stat_activity,
log_line_prefix, and EXPLAIN VERBOSE.

Similar to other fields in pg_stat_activity, only the queryid from the
top level statements are exposed, and if the backends status isn't
active then the queryid from the last executed statements is displayed.

Add a %Q placeholder to include the queryid in log_line_prefix, which
will also only expose top level statements.

For EXPLAIN VERBOSE, if a query identifier has been computed, either by
enabling compute_query_id or using a third-party module, display it.

Bump catalog version.

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

Author: Julien Rouhaud

Reviewed-by: Alvaro Herrera, Nitin Jadhav, Zhihong Yu
2021-04-07 14:04:06 -04:00
..
access Truncate line pointer array during VACUUM. 2021-04-07 08:47:15 -07:00
bootstrap Split backend status and progress related functionality out of pgstat.c. 2021-04-03 11:42:52 -07:00
catalog Make use of in-core query id added by commit 5fd9dfa5f5 2021-04-07 14:04:06 -04:00
commands Make use of in-core query id added by commit 5fd9dfa5f5 2021-04-07 14:04:06 -04:00
executor Make use of in-core query id added by commit 5fd9dfa5f5 2021-04-07 14:04:06 -04:00
foreign Update copyright for 2021 2021-01-02 13:06:25 -05:00
jit Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
lib Update copyright for 2021 2021-01-02 13:06:25 -05:00
libpq Refactor hba_authname 2021-04-07 14:24:47 +02:00
main Update copyright for 2021 2021-01-02 13:06:25 -05:00
nodes Add Result Cache executor node (take 2) 2021-04-02 14:10:56 +13:00
optimizer Add support for NullIfExpr in eval_const_expressions 2021-04-02 11:01:49 +02:00
parser Make use of in-core query id added by commit 5fd9dfa5f5 2021-04-07 14:04:06 -04:00
partitioning ALTER TABLE ... DETACH PARTITION ... CONCURRENTLY 2021-03-25 18:00:28 -03:00
po Translation updates 2020-05-18 12:49:30 +02:00
port Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
postmaster Fix typo in pgstat.c. 2021-04-06 14:09:40 +09:00
regex Further tweak memory management for regex DFAs. 2021-03-08 16:32:29 -05:00
replication Message improvement 2021-04-07 07:42:44 +02:00
rewrite Clean up treatment of missing default and CHECK-constraint records. 2021-04-06 10:34:39 -04:00
snowball Update snowball 2021-02-19 08:10:15 +01:00
statistics Fix handling of clauses incompatible with extended statistics 2021-04-06 16:56:06 +02:00
storage Truncate line pointer array during VACUUM. 2021-04-07 08:47:15 -07:00
tcop Make use of in-core query id added by commit 5fd9dfa5f5 2021-04-07 14:04:06 -04:00
tsearch Don't leak compiled regex(es) when an ispell cache entry is dropped. 2021-03-18 22:22:47 -04:00
utils Make use of in-core query id added by commit 5fd9dfa5f5 2021-04-07 14:04:06 -04:00
.gitignore
common.mk
Makefile Use sort_template.h for qsort_tuple() and qsort_ssup(). 2021-03-03 17:02:32 +13:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00