mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
PG-147 Stored Procedure Support add parentid to track caller.
Patch By: Martin Sun Reviewed By: Hamid Akhtar
This commit is contained in:
@@ -120,6 +120,8 @@ typedef enum pgssStoreKind
|
||||
PGSS_NUMKIND /* Must be last value of this enum */
|
||||
} pgssStoreKind;
|
||||
|
||||
/* the assumption of query max nested level */
|
||||
#define DEFAULT_MAX_NESTED_LEVEL 10
|
||||
|
||||
/*
|
||||
* Type of aggregate keys
|
||||
@@ -161,6 +163,7 @@ typedef struct QueryInfo
|
||||
Oid userid; /* user OID */
|
||||
Oid dbid; /* database OID */
|
||||
uint host; /* client IP */
|
||||
uint64 parentid; /* parent queryid of current query*/
|
||||
int64 type; /* type of query, options are query, info, warning, error, fatal */
|
||||
char application_name[APPLICATIONNAME_LEN];
|
||||
char relations[REL_LST][REL_LEN]; /* List of relation involved in the query */
|
||||
|
||||
Reference in New Issue
Block a user