Re: Bug / shortcoming in has_*_privilege
Itagaki Takahiro <itagaki.takahiro@gmail.com>
From: Itagaki Takahiro <itagaki.takahiro@gmail.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Jim Nasby <jim@nasby.net>, PGSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2010-10-13T05:44:08Z
Lists: pgsql-hackers
>> <alvherre@commandprompt.com> wrote: >> > Excerpts from Jim Nasby's message of jue jun 10 17:54:43 -0400 2010: >> >> test_us@workbook=# select has_table_privilege( 'public', 'test', 'SELECT' ); >> >> ERROR: role "public" does not exist >> > >> > Here's a patch implementing this idea. I applied it almost as-is, except an unused variable in get_role_oid_or_public(). >> BTW, does the patch need to be back-patched to older versions? > There's no intention to do so. OK. Applied only to HEAD. The issue was reported as a bug, but we will consider the change as an improvement. -- Itagaki Takahiro