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

Lists: pgsql-committers
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
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(-)