mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
Fix toplevel calculation for older PG version
This commit is contained in:
@@ -1818,7 +1818,11 @@ pgsm_create_hash_entry(uint64 bucket_id, uint64 queryid, PlanInfo * plan_info)
|
||||
#if PG_VERSION_NUM < 140000
|
||||
entry->key.toplevel = 1;
|
||||
#else
|
||||
#if PG_VERSION_NUM >= 170000
|
||||
entry->key.toplevel = ((nesting_level) == 0);
|
||||
#else
|
||||
entry->key.toplevel = ((nesting_level + plan_nested_level) == 0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (IsTransactionState())
|
||||
|
||||
Reference in New Issue
Block a user