Re: [v9.1] Add security hook on initialization of instance - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: [v9.1] Add security hook on initialization of instance
Date
Msg-id 20100614110129.GD21875@tamriel.snowman.net
Whole thread Raw
In response to [v9.1] Add security hook on initialization of instance  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Responses Re: [v9.1] Add security hook on initialization of instance
List pgsql-hackers
* KaiGai Kohei (kaigai@ak.jp.nec.com) wrote:
> The attached patch tries to add one more security hook on the
> initialization of PostgreSQL instance (InitPostgres()).
>
> It gives the external security module a chance to initialize itself,
> and acquire credential of the client.
>
> I assumed the best place to initialize the module is just after the
> initialize_acl() invocation, if ESP is available.
> We have not discussed about this hook yet. So, I'd like to see any
> comments.

Aren't modules given a __PG_Init or something similar that they can
define which will be called when the module is loaded..?
Stephen

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_dump(all) --quote-all-identifiers
Next
From: Magnus Hagander
Date:
Subject: Re: SR slaves and .pgpass