pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsqlpl@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15251: query plan affected by grant select on partition
Date: Tue, 10 Jul 2018 18:47:48 -0400
Message-ID: <4683.1531262868@sss.pgh.pa.us> (raw)
In-Reply-To: <152967245839.1266.6939666809369185595@wrigleys.postgresql.org>
References: <152967245839.1266.6939666809369185595@wrigleys.postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> Plan of SELECT query on a parent table, which actually get data from an
> inherited table (partition) depends on grants for a partition.
> - When current_user is missing a grant to SELECT from a partition then
> planner incorrectly decides to use BitmapAnd on two GIN Indexes (see "Bad
> plan" below).

Yeah, I concur this is a bug; two bugs really.  See analysis at

https://www.postgresql.org/message-id/3876.1531261875@sss.pgh.pa.us

It's not clear at this point whether it'll be practical to fix in
released branches, but we'll try to do something about it going forward.

			regards, tom lane




view thread (2+ messages)

Message-ID: <4683.1531262868@sss.pgh.pa.us>
Permalink:  ../4683.1531262868@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4683.1531262868@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 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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsqlpl@gmail.com
  Subject: Re: BUG #15251: query plan affected by grant select on partition
  In-Reply-To: <4683.1531262868@sss.pgh.pa.us>
  References: <152967245839.1266.6939666809369185595@wrigleys.postgresql.org> <4683.1531262868@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