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: Don't record FDW user mappings as members of extensions.
Date: Tue, 07 Aug 2018 20:33:45 +0000
Message-ID: <E1fn8fp-0007SX-ST@gemulon.postgresql.org> (raw)

Don't record FDW user mappings as members of extensions.

CreateUserMapping has a recordDependencyOnCurrentExtension call that's
been there since extensions were introduced (very possibly my fault).
However, there's no support anywhere else for user mappings as members
of extensions, nor are they listed as a possible member object type in
the documentation.  Nor does it really seem like a good idea for user
mappings to belong to extensions when roles don't.  Hence, remove the
bogus call.

(As we saw in bug #15310, the lack of any pg_dump support for this case
ensures that any such membership record would silently disappear during
pg_upgrade.  So there's probably no need for us to do anything else
about cleaning up after this mistake.)

Discussion: https://postgr.es/m/27952.1533667213@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9b7c56d6cba9d23318d98af58f0c1adc85869bbf

Modified Files
--------------
src/backend/commands/foreigncmds.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1fn8fp-0007SX-ST@gemulon.postgresql.org>
Permalink:  ../E1fn8fp-0007SX-ST@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fn8fp-0007SX-ST@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: Don't record FDW user mappings as members of extensions.
  In-Reply-To: <E1fn8fp-0007SX-ST@gemulon.postgresql.org>
  References: <E1fn8fp-0007SX-ST@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