Accept 'public' as a pseudo-role name in has_table_privilege() and friends

Itagaki Takahiro <itagaki.takahiro@gmail.com>

Commit: d0f876ca8ccb7dc8820302543b114014b7bac090
Author: Itagaki Takahiro <itagaki.takahiro@gmail.com>
Date: 2010-10-13T05:37:23Z
Releases: 9.1.0
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.

Files

PathChange+/−
doc/src/sgml/func.sgml modified +4 −3
src/backend/utils/adt/acl.c modified +38 −24