pgsql: Accept 'public' as a pseudo-role name in has_table_privilege() a

From: Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Accept 'public' as a pseudo-role name in has_table_privilege() a
Date: 2010-10-13 05:43:07
Message-ID: E1P5u7H-0000Io-Ma@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Accept 'public' as a pseudo-role name in has_table_privilege() and friends
to see if a particular privilege has been granted to PUBLIC.

The issue was reported by Jim Nasby.
Patch by Alvaro Herrera, and reviewed by KaiGai Kohei.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=d0f876ca8ccb7dc8820302543b114014b7bac090

Modified Files
--------------
doc/src/sgml/func.sgml | 7 +++--
src/backend/utils/adt/acl.c | 62 ++++++++++++++++++++++++++----------------
2 files changed, 42 insertions(+), 27 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Hiroshi Saito 2010-10-13 16:24:21 psqlodbc - psqlodbc: Add the specification of GSSPI option.
Previous Message Tom Lane 2010-10-12 18:44:43 pgsql: Remove some unnecessary tests of pgstat_track_counts.