Re: Bug / shortcoming in has_*_privilege

Поиск
Список
Период
Сортировка
От Nasby, Jim
Тема Re: Bug / shortcoming in has_*_privilege
Дата
Msg-id 772616D3-C762-4C39-9775-25EEF9AB130F@enovafinancial.com
обсуждение исходный текст
Ответ на Re: Bug / shortcoming in has_*_privilege  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Jun 11, 2010, at 5:18 AM, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Thu, Jun 10, 2010 at 5:54 PM, Jim Nasby <jim@nasby.net> wrote:
>>> So there's no way to see if a particular privilege has been granted to public. ISTM 'public' should be accepted,
sinceyou can't use it as a role name anyway... 
>
>> It's a bit sticky - you could make that work for
>> has_table_privilege(name, oid, text) or has_table_privilege(name,
>> text, text), but what would you do about the versions whose first
>> argument is an oid?
>
> Nothing.  The only reason to use those forms is in a join against
> pg_authid, and the "public" group doesn't have an entry there.

Cool, I'll have CMD come up with a patch.
--
Jim "Decibel!" Nasby jnasby@EnovaFinancial.com
Primary: 512-579-9024     Backup: 512-569-9461



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Igor Kryltsov
Дата:
Сообщение: Table partitioning - is anything coming?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Needs Suggestion