pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: In event triggers, use "pg_temp" only for our own temp schema.
Date: Tue, 27 Jul 2021 16:08:28 +0000
Message-ID: <E1m8Pd6-0004Gx-UB@gemulon.postgresql.org> (raw)

In event triggers, use "pg_temp" only for our own temp schema.

pg_event_trigger_ddl_commands used "pg_temp" to refer to any
temp schema, not only that of the current backend.  This seems
like overreach.  It's somewhat unlikely that DDL commands would
refer to temp objects of other sessions to begin with, but if they
do, "pg_temp" would be a most misleading way to display the action.

While this seems like a bug, it's not quite out of the realm of
possibility that somebody out there is expecting the current
behavior.  Hence, fix in HEAD, but don't back-patch.

Discussion: https://postgr.es/m/CAAJ_b97W=QaGmag9AhWNbmx3uEYsNkXWL+OVW1_E1D3BtgWvtw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/024515cac50e246d92bbe67e9de4da0f302972ef

Modified Files
--------------
src/backend/commands/event_trigger.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)



Message-ID: <E1m8Pd6-0004Gx-UB@gemulon.postgresql.org>
Permalink:  ../E1m8Pd6-0004Gx-UB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m8Pd6-0004Gx-UB@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: In event triggers, use "pg_temp" only for our own temp schema.
  In-Reply-To: <E1m8Pd6-0004Gx-UB@gemulon.postgresql.org>
  References: <E1m8Pd6-0004Gx-UB@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