Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFpVt-0000dA-6P for pgsql-admin@arkaria.postgresql.org; Thu, 16 Jul 2015 20:12:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZFpVs-00050m-6E for pgsql-admin@arkaria.postgresql.org; Thu, 16 Jul 2015 20:12:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZFpVr-00050d-OO for pgsql-admin@postgresql.org; Thu, 16 Jul 2015 20:12:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZFpVo-0006lp-UR for pgsql-admin@postgresql.org; Thu, 16 Jul 2015 20:12:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t6GKC68O007674; Thu, 16 Jul 2015 16:12:06 -0400 From: Tom Lane To: Natalie Wenz cc: "pgsql-admin@postgresql.org" Subject: Re: postgres_fdw user mapping and role inheritance 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> Comments: In-reply-to Natalie Wenz message dated "Thu, 16 Jul 2015 14:10:09 -0500" Date: Thu, 16 Jul 2015 16:12:06 -0400 Message-ID: <7673.1437077526@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Natalie Wenz 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