From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Re: [COMMITTERS] pgsql: Only try to push down foreign joins if the user mapping OIDs mat
Date: Mon, 14 Mar 2016 13:05:48 -0400
Message-ID: <3221.1457975148@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZaiM80TJySOhk6DR3fqHbZEELTuyVboL6MOtvFqKmJ6w@mail.gmail.com>
References: <E1aOrwD-0004Af-Rm@gemulon.postgresql.org>
<20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de>
<CA+TgmoZqPKh-dx2HFGLc76RNV1mUBwj7O5imtSLkuw8xj8_8Lw@mail.gmail.com>
<20160312194625.txlzu22xykgpu66n@alap3.anarazel.de>
<56E6240E.5090301@lab.ntt.co.jp>
<18299.1457923919@sss.pgh.pa.us>
<CA+TgmoZaiM80TJySOhk6DR3fqHbZEELTuyVboL6MOtvFqKmJ6w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas <robertmhaas@gmail.com> writes:
> On Sun, Mar 13, 2016 at 10:51 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I'm not really sold on enforcing that people create meaningless user
>> mappings. For one thing, they're likely to be sloppy about it, which
>> could lead to latent security problems if the FDW later acquires a
>> concept that user mappings mean something.
> I think we should just fix build_simple_rel() so that it doesn't fail
> if there is no user mapping. It can just set rel->umid to InvalidOid
> in that case, and if necessary we can adjust the code elsewhere to
> tolerate that. This wasn't an intentional behavior change, and I
> think we should just put things back to the way they were.
So, allow rel->umid to be InvalidOid if there's no user mapping, and
when dealing with a join, allow combining when both sides have InvalidOid?
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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, robertmhaas@gmail.com, fujita.etsuro@lab.ntt.co.jp, andres@anarazel.de, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Only try to push down foreign joins if the user mapping OIDs mat
In-Reply-To: <3221.1457975148@sss.pgh.pa.us>
References: <E1aOrwD-0004Af-Rm@gemulon.postgresql.org> <20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de> <CA+TgmoZqPKh-dx2HFGLc76RNV1mUBwj7O5imtSLkuw8xj8_8Lw@mail.gmail.com> <20160312194625.txlzu22xykgpu66n@alap3.anarazel.de> <56E6240E.5090301@lab.ntt.co.jp> <18299.1457923919@sss.pgh.pa.us> <CA+TgmoZaiM80TJySOhk6DR3fqHbZEELTuyVboL6MOtvFqKmJ6w@mail.gmail.com> <3221.1457975148@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