Issue - (#40): Cannot set pgsm_track value with psql client with alter system.

Removed the track option and added a new option pgsm_enable, which require a restart.

PG-122
This commit is contained in:
Ibrar Ahmed
2020-08-06 10:43:27 +00:00
parent beeb960e82
commit a2c87d8398
3 changed files with 14 additions and 34 deletions

View File

@@ -481,7 +481,7 @@ pgss_ExecutorStart(QueryDesc *queryDesc, int eflags)
* counting of optimizable statements that are directly contained in
* utility statements.
*/
if (PGSS_ENABLED() && queryDesc->plannedstmt->queryId != UINT64CONST(0))
if (PGSM_ENABLED && queryDesc->plannedstmt->queryId != UINT64CONST(0))
{
/*
* Set up to track total elapsed time in ExecutorRun. Make sure the
@@ -556,7 +556,7 @@ pgss_ExecutorEnd(QueryDesc *queryDesc)
float stime;
uint64 queryId = queryDesc->plannedstmt->queryId;
if (queryId != UINT64CONST(0) && queryDesc->totaltime && PGSS_ENABLED())
if (queryId != UINT64CONST(0) && queryDesc->totaltime && PGSM_ENABLED)
{
/*
* Make sure stats accumulation is done. (Note: it's okay if several