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

Function trackDroppedObjectsNeeded

src/backend/commands/event_trigger.c:1168–1178  ·  view source on GitHub ↗

* Do we need to keep close track of objects being dropped? * * This is useful because there is a cost to running with them enabled. */

Source from the content-addressed store, hash-verified

1166 * This is useful because there is a cost to running with them enabled.
1167 */
1168bool
1169trackDroppedObjectsNeeded(void)
1170{
1171 /*
1172 * true if any sql_drop, table_rewrite, ddl_command_end event trigger
1173 * exists
1174 */
1175 return list_length(EventCacheLookup(EVT_SQLDrop)) > 0 ||
1176 list_length(EventCacheLookup(EVT_TableRewrite)) > 0 ||
1177 list_length(EventCacheLookup(EVT_DDLCommandEnd)) > 0;
1178}
1179
1180/*
1181 * Support for dropped objects information on event trigger functions.

Callers 2

deleteObjectsInListFunction · 0.85

Calls 2

list_lengthFunction · 0.85
EventCacheLookupFunction · 0.85

Tested by

no test coverage detected