pgsql: Revert b2a459edf "Fix GRANTED BY support in REVOKE ROLE statemen

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Revert b2a459edf "Fix GRANTED BY support in REVOKE ROLE statemen
Date: 2021-12-30 12:26:43
Message-ID: E1n2uW3-0007fI-9F@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Revert b2a459edf "Fix GRANTED BY support in REVOKE ROLE statements"

The reverted commit attempted to fix SQL specification compliance for
the cases which 6aaaa76bb left. This however broke existing behavior
which takes precedence over spec compliance so revert. The introduced
tests are left after the revert since the codepath isn't well covered.
Per bug report 17346. Backpatch down to 14 where it was introduced.

Reported-by: Andrew Bille <andrewbille(at)gmail(dot)com>
Discussion: https://postgr.es/m/17346-f72b28bd1a341060@postgresql.org

Branch
------
REL_14_STABLE

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

Modified Files
--------------
src/backend/commands/user.c | 11 -----------
src/backend/parser/gram.y | 2 --
src/test/regress/expected/privileges.out | 2 --
3 files changed, 15 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-12-30 19:29:41 pgsql: Minor cleanup/optimization in pg_dump.
Previous Message Daniel Gustafsson 2021-12-30 12:25:58 pgsql: Revert b2a459edf "Fix GRANTED BY support in REVOKE ROLE statemen