From: Tom Lane <tgl@sss.pgh.pa.us>
To: Niels Jespersen <NJN@dst.dk>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: SV: Foreign tables, user mappings and privilege setup
Date: Tue, 22 Sep 2020 10:15:50 -0400
Message-ID: <1177001.1600784150@sss.pgh.pa.us> (raw)
In-Reply-To: <bcbc4634847945bf9ff4378c339a60f0@dst.dk>
References: <d0306b1670674d70ab923c42d4340db3@dst.dk>
<1535712efb8ba93932ff5994213a7f21c0db3e56.camel@cybertec.at>
<bcbc4634847945bf9ff4378c339a60f0@dst.dk>
Niels Jespersen <NJN@dst.dk> writes:
> I can create a user mapping for a group (role). This works, but it is not enough to grant the role to the end user (that has inherit defined). The end user must explicitly use "set role" before accessing the foreign table.
Seems right to me. If the user is a member of two groups, each of which
has a mapping for that server, how could the server choose one?
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, NJN@dst.dk, laurenz.albe@cybertec.at
Subject: Re: Foreign tables, user mappings and privilege setup
In-Reply-To: <1177001.1600784150@sss.pgh.pa.us>
References: <d0306b1670674d70ab923c42d4340db3@dst.dk> <1535712efb8ba93932ff5994213a7f21c0db3e56.camel@cybertec.at> <bcbc4634847945bf9ff4378c339a60f0@dst.dk> <1177001.1600784150@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