pgsql: Fix bug in translate_col_privs_multilevel

Поиск
Список
Период
Сортировка
От David Rowley
Тема pgsql: Fix bug in translate_col_privs_multilevel
Дата
Msg-id E1p8gha-0000MV-MP@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: Add WL_SOCKET_ACCEPT event to WaitEventSet API.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix event trigger example