pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Natalie Wenz <nataliewenz@ebureau.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: postgres_fdw user mapping and role inheritance
Date: Thu, 16 Jul 2015 16:12:06 -0400
Message-ID: <7673.1437077526@sss.pgh.pa.us> (raw)
In-Reply-To: <32B4D87F-0466-467A-9F2B-00F696E9E056@ebureau.com>
References: <2EBBB4BA-B1C9-4978-8182-F35F8831FD0E@ebureau.com>
	<4969.1437070567@sss.pgh.pa.us>
	<32B4D87F-0466-467A-9F2B-00F696E9E056@ebureau.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Natalie Wenz <nataliewenz@ebureau.com> writes:
> Would it be necessary to disambiguate?

Of course.  If the mapping for group_x says to connect to the remote
server as user foo, while the mapping for group_y says to connect
as user bar, then it matters which one we use.  But there would be no
principled way to choose, if the current userid is a member of both
group_x and group_y.

			regards, tom lane


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



view thread (8+ messages)  latest in thread

Message-ID: <7673.1437077526@sss.pgh.pa.us>
Permalink:  ../7673.1437077526@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7673.1437077526@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, nataliewenz@ebureau.com
  Subject: Re: postgres_fdw user mapping and role inheritance
  In-Reply-To: <7673.1437077526@sss.pgh.pa.us>

* 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