Re: Help with access check

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Help with access check
Дата
Msg-id 20050206144518.GA27242@dcc.uchile.cl
обсуждение исходный текст
Ответ на Help with access check  (Thomas Hallgren <thhal@mailblocks.com>)
Ответы Re: Help with access check  (Thomas Hallgren <thhal@mailblocks.com>)
Список pgsql-general
On Sun, Feb 06, 2005 at 03:28:31PM +0100, Thomas Hallgren wrote:

Hi,

> From code inside a C-function, given the AclId of a user and the Oid of
> a Schema, what's the most efficient way to find out if the user has been
> granted CREATE on the schema?

See src/backend/catalog/aclchk.c, function pg_namespace_aclcheck().

Why would you want to do that directly anyway?

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"La virtud es el justo medio entre dos defectos" (Aristóteles)

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

Предыдущее
От: Ron Peterson
Дата:
Сообщение: Re: security
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: Help with access check