Format code
parent
122a30c82b
commit
2af9ae7a4a
|
@ -1362,7 +1362,8 @@ pgsm_update_entry(pgsmEntry * entry,
|
||||||
int plan_text_len = plan_info ? plan_info->plan_len : 0;
|
int plan_text_len = plan_info ? plan_info->plan_len : 0;
|
||||||
|
|
||||||
/* Start collecting data for next bucket and reset all counters and timestamps */
|
/* Start collecting data for next bucket and reset all counters and timestamps */
|
||||||
if (reset) {
|
if (reset)
|
||||||
|
{
|
||||||
memset(&entry->counters, 0, sizeof(Counters));
|
memset(&entry->counters, 0, sizeof(Counters));
|
||||||
entry->stats_since = GetCurrentTimestamp();
|
entry->stats_since = GetCurrentTimestamp();
|
||||||
entry->minmax_stats_since = entry->stats_since;
|
entry->minmax_stats_since = entry->stats_since;
|
||||||
|
@ -2071,7 +2072,8 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
|
||||||
pgsmSharedState *pgsm;
|
pgsmSharedState *pgsm;
|
||||||
|
|
||||||
int expected_columns;
|
int expected_columns;
|
||||||
switch (api_version) {
|
switch (api_version)
|
||||||
|
{
|
||||||
case PGSM_V1_0:
|
case PGSM_V1_0:
|
||||||
expected_columns = PG_STAT_MONITOR_COLS_V1_0;
|
expected_columns = PG_STAT_MONITOR_COLS_V1_0;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue