[PG-644] Add option to disable application name tracking (#469)

* Cache application name for every backed instance

* Improve pg_get_backend_status performance for PG16 and PG17

* Fix

* Make application_name tracking disabled by default

* Meke app name tracking opt-out

* Format newly added code with pgindent

* Fix build for PG17

* Fix
This commit is contained in:
Artem Gavrilov
2024-07-23 18:49:33 +02:00
committed by GitHub
parent 16ec8362e2
commit d7999f1acf
10 changed files with 212 additions and 148 deletions

View File

@@ -521,6 +521,7 @@ extern bool pgsm_enable_query_plan;
extern bool pgsm_enable_overflow;
extern bool pgsm_normalized_query;
extern bool pgsm_track_utility;
extern bool pgsm_track_application_names;
extern bool pgsm_enable_pgsm_query_id;
extern int pgsm_track;