MCPcopy Create free account
hub / github.com/apache/cloudberry / pgstat_reset_counters

Function pgstat_reset_counters

src/backend/postmaster/pgstat.c:1434–1445  ·  view source on GitHub ↗

---------- * pgstat_reset_counters() - * * Tell the statistics collector to reset counters for our database. * * Permission checking for this function is managed through the normal * GRANT system. * ---------- */

Source from the content-addressed store, hash-verified

1432 * ----------
1433 */
1434void
1435pgstat_reset_counters(void)
1436{
1437 PgStat_MsgResetcounter msg;
1438
1439 if (pgStatSock == PGINVALID_SOCKET)
1440 return;
1441
1442 pgstat_setheader(&msg.m_hdr, PGSTAT_MTYPE_RESETCOUNTER);
1443 msg.m_databaseid = MyDatabaseId;
1444 pgstat_send(&msg, sizeof(msg));
1445}
1446
1447/* ----------
1448 * pgstat_reset_shared_counters() -

Callers 1

pg_stat_resetFunction · 0.85

Calls 2

pgstat_setheaderFunction · 0.85
pgstat_sendFunction · 0.85

Tested by

no test coverage detected