Re: Help with access check

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Thomas Hallgren <thhal(at)mailblocks(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Help with access check
Date: 2005-02-06 14:45:18
Message-ID: 20050206144518.GA27242@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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[(at)]dcc(dot)uchile(dot)cl>)
"La virtud es el justo medio entre dos defectos" (Aristóteles)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Hallgren 2005-02-06 15:08:53 Re: Help with access check
Previous Message Ron Peterson 2005-02-06 14:34:01 Re: security