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

Function pgstat_drop_relation

src/backend/postmaster/pgstat.c:1405–1422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1403 */
1404#ifdef NOT_USED
1405void
1406pgstat_drop_relation(Oid relid)
1407{
1408 PgStat_MsgTabpurge msg;
1409 int len;
1410
1411 if (pgStatSock == PGINVALID_SOCKET)
1412 return;
1413
1414 msg.m_tableid[0] = relid;
1415 msg.m_nentries = 1;
1416
1417 len = offsetof(PgStat_MsgTabpurge, m_tableid[0]) + sizeof(Oid);
1418
1419 pgstat_setheader(&msg.m_hdr, PGSTAT_MTYPE_TABPURGE);
1420 msg.m_databaseid = MyDatabaseId;
1421 pgstat_send(&msg, len);
1422}
1423#endif /* NOT_USED */
1424
1425/* ----------

Callers

nothing calls this directly

Calls 2

pgstat_setheaderFunction · 0.85
pgstat_sendFunction · 0.85

Tested by

no test coverage detected