From e9a077cad3799b41e8deef6fd8cb87e50164a791 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Mon, 6 Apr 2015 11:40:55 -0300 Subject: pg_event_trigger_dropped_objects: add is_temp column It now also reports temporary objects dropped that are local to the backend. Previously we weren't reporting any temp objects because it was deemed unnecessary; but as it turns out, it is necessary if we want to keep close track of DDL command execution inside one session. Temp objects are reported as living in schema pg_temp, which works because such a schema-qualification always refers to the temp objects of the current session. --- src/include/utils/lsyscache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/utils/lsyscache.h') diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h index 2f5ede1843b..15bb6d94f58 100644 --- a/src/include/utils/lsyscache.h +++ b/src/include/utils/lsyscache.h @@ -151,6 +151,7 @@ extern void free_attstatsslot(Oid atttype, Datum *values, int nvalues, float4 *numbers, int nnumbers); extern char *get_namespace_name(Oid nspid); +extern char *get_namespace_name_or_temp(Oid nspid); extern Oid get_range_subtype(Oid rangeOid); #define type_is_array(typid) (get_element_type(typid) != InvalidOid) -- cgit v1.2.3