pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix bug in translate_col_privs_multilevel
Date: Fri, 23 Dec 2022 11:59:03 +0000
Message-ID: <E1p8gha-0000MV-MP@gemulon.postgresql.org> (raw)

Fix bug in translate_col_privs_multilevel

Fix incorrect code which was trying to convert a Bitmapset of columns at
the attnums according to a parent table and transform them into the
equivalent Bitmapset with same attnums according to the given child table.
This code is new as of a61b1f748 and was failing to do the correct
translation when there was an intermediate parent table between 'rel' and
'top_parent_rel'.

Reported-by: Ranier Vilela
Author: Richard Guo, Amit Langote
Discussion: https://postgr.es/m/CAEudQArohfB_Gy%2BhcH2-bANUkxgjJiP%3DABq01_LgTNTbcNijag%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bbfdf7180de85f9e7e995ba00dddc58452b3ba4b

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 36 ++++++++++++++++++++++++++
contrib/postgres_fdw/sql/postgres_fdw.sql      | 23 ++++++++++++++++
src/backend/optimizer/util/inherit.c           | 22 +++++++---------
3 files changed, 68 insertions(+), 13 deletions(-)



Message-ID: <E1p8gha-0000MV-MP@gemulon.postgresql.org>
Permalink:  ../E1p8gha-0000MV-MP@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1p8gha-0000MV-MP@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: drowley@postgresql.org
  Subject: Re: pgsql: Fix bug in translate_col_privs_multilevel
  In-Reply-To: <E1p8gha-0000MV-MP@gemulon.postgresql.org>
  References: <E1p8gha-0000MV-MP@gemulon.postgresql.org>

* 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