---------- * 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. * ---------- */
| 1432 | * ---------- |
| 1433 | */ |
| 1434 | void |
| 1435 | pgstat_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() - |
no test coverage detected