]> granicus.if.org Git - postgresql/commit
pg_event_trigger_dropped_objects: add is_temp column
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 6 Apr 2015 14:40:55 +0000 (11:40 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 6 Apr 2015 14:40:55 +0000 (11:40 -0300)
commite9a077cad3799b41e8deef6fd8cb87e50164a791
tree7f0794bc0faacc9eb8d62b1f5c07fd82790a1474
parent70dc2db7f1dfdecdacf595bf00964cb20ad5a835
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.
doc/src/sgml/func.sgml
src/backend/catalog/objectaddress.c
src/backend/commands/event_trigger.c
src/backend/utils/adt/format_type.c
src/backend/utils/adt/regproc.c
src/backend/utils/cache/lsyscache.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/lsyscache.h
src/test/regress/expected/event_trigger.out
src/test/regress/sql/event_trigger.sql