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

Function pgstat_drop_database

src/backend/postmaster/pgstat.c:1379–1390  ·  view source on GitHub ↗

---------- * pgstat_drop_database() - * * Tell the collector that we just dropped a database. * (If the message gets lost, we will still clean the dead DB eventually * via future invocations of pgstat_vacuum_stat().) * ---------- */

Source from the content-addressed store, hash-verified

1377 * ----------
1378 */
1379void
1380pgstat_drop_database(Oid databaseid)
1381{
1382 PgStat_MsgDropdb msg;
1383
1384 if (pgStatSock == PGINVALID_SOCKET)
1385 return;
1386
1387 pgstat_setheader(&msg.m_hdr, PGSTAT_MTYPE_DROPDB);
1388 msg.m_databaseid = databaseid;
1389 pgstat_send(&msg, sizeof(msg));
1390}
1391
1392
1393/* ----------

Callers 2

dropdbFunction · 0.85
pgstat_vacuum_statFunction · 0.85

Calls 2

pgstat_setheaderFunction · 0.85
pgstat_sendFunction · 0.85

Tested by

no test coverage detected