pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: pg_event_trigger_dropped_objects: add is_temp column
Date: Mon, 06 Apr 2015 14:43:46 +0000
Message-ID: <E1Yf8Fe-0007PZ-Hm@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e9a077cad3799b41e8deef6fd8cb87e50164a791

Modified Files
--------------
doc/src/sgml/func.sgml                      |    7 ++++++
src/backend/catalog/objectaddress.c         |   22 ++++++++---------
src/backend/commands/event_trigger.c        |   35 +++++++++++++++++++++------
src/backend/utils/adt/format_type.c         |    2 +-
src/backend/utils/adt/regproc.c             |    4 +--
src/backend/utils/cache/lsyscache.c         |   15 ++++++++++++
src/include/catalog/catversion.h            |    2 +-
src/include/catalog/pg_proc.h               |    3 +--
src/include/utils/lsyscache.h               |    1 +
src/test/regress/expected/event_trigger.out |   29 ++++++++++++----------
src/test/regress/sql/event_trigger.sql      |    8 +++---
11 files changed, 87 insertions(+), 41 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (7+ messages)

Message-ID: <E1Yf8Fe-0007PZ-Hm@gemulon.postgresql.org>
Permalink:  ../E1Yf8Fe-0007PZ-Hm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Yf8Fe-0007PZ-Hm@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: pg_event_trigger_dropped_objects: add is_temp column
  In-Reply-To: <E1Yf8Fe-0007PZ-Hm@gemulon.postgresql.org>
  References: <E1Yf8Fe-0007PZ-Hm@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox