postgresql/src/backend
Michael Paquier bb45156f34 Show names of DEALLOCATE as constants in pg_stat_statements
This commit switches query jumbling so as prepared statement names are
treated as constants in DeallocateStmt.  A boolean field is added to
DeallocateStmt to make a distinction between ALL and named prepared
statements, as "name" was used to make this difference before, NULL
meaning DEALLOCATE ALL.

Prior to this commit, DEALLOCATE was not tracked in pg_stat_statements,
for the reason that it was not possible to treat its name parameter as a
constant.  Now that query jumbling applies to all the utility nodes,
this reason does not apply anymore.

Like 638d42a3c5, this can be a huge advantage for monitoring where
prepared statement names are randomly generated, preventing bloat in
pg_stat_statements.  A couple of tests are added to track the new
behavior.

Author: Dagfinn Ilmari Mannsåker, Michael Paquier
Reviewed-by: Julien Rouhaud
Discussion: https://postgr.es/m/ZMhT9kNtJJsHw6jK@paquier.xyz
2023-08-27 17:27:44 +09:00
..
access Fix _bt_allequalimage() call within critical section. 2023-08-23 18:12:41 +03:00
archive Redesign archive modules 2023-02-17 14:26:42 +09:00
backup Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
bootstrap Add const decorations 2023-08-23 06:39:39 +02:00
catalog Catalog not-null constraints 2023-08-25 13:31:24 +02:00
commands Catalog not-null constraints 2023-08-25 13:31:24 +02:00
executor Fix RLS policy usage in MERGE. 2023-08-07 09:28:47 +01:00
foreign Expand some more uses of "deleg" to "delegation" or "delegated". 2023-05-21 10:55:18 -04:00
jit Remove duplicated assignment of LLVMJitHandle->lljit 2023-07-13 16:44:17 +09:00
lib Fix ILIST_DEBUG build 2023-01-18 10:26:15 -08:00
libpq Generate new LOG for "trust" connections under log_connections 2023-08-26 20:11:19 +09:00
main Remove obsolete defense against strxfrm() bugs. 2023-04-20 13:20:14 +12:00
nodes Catalog not-null constraints 2023-08-25 13:31:24 +02:00
optimizer Catalog not-null constraints 2023-08-25 13:31:24 +02:00
parser Show names of DEALLOCATE as constants in pg_stat_statements 2023-08-27 17:27:44 +09:00
partitioning Add missing ObjectIdGetDatum() in syscache lookup calls for Oids 2023-07-20 15:18:25 +09:00
po Translation updates 2023-08-07 12:39:30 +02:00
port Add GUC parameter "huge_pages_status" 2023-07-06 14:42:36 +09:00
postmaster Use FD_CLOEXEC on ListenSockets 2023-08-24 17:03:05 +03:00
regex All supported systems have locale_t. 2023-07-09 11:55:18 +12:00
replication Reset the logical worker type while cleaning up other worker info. 2023-08-25 08:57:55 +05:30
rewrite Fix RLS policy usage in MERGE. 2023-08-07 09:28:47 +01:00
snowball Fix the install rule for snowball_create.sql. 2023-05-23 11:15:57 -04:00
statistics Take pg_attribute out of VacAttrStats 2023-07-03 07:18:57 +02:00
storage Rename hook functions for debug_io_direct to match variable name. 2023-08-24 22:25:49 +12:00
tcop Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
tsearch Take pg_attribute out of VacAttrStats 2023-07-03 07:18:57 +02:00
utils Catalog not-null constraints 2023-08-25 13:31:24 +02:00
.gitignore
Makefile Add system view pg_wait_events 2023-08-20 15:35:02 +09:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build Add win32ver data to meson-built postgres.exe. 2023-06-12 07:40:38 -07:00
nls.mk Add missing gettext triggers 2023-05-10 13:51:51 +02:00