* Do we need to keep close track of objects being dropped? * * This is useful because there is a cost to running with them enabled. */
| 1166 | * This is useful because there is a cost to running with them enabled. |
| 1167 | */ |
| 1168 | bool |
| 1169 | trackDroppedObjectsNeeded(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. |
no test coverage detected