Re: Feedback on writing extensible modules - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: Feedback on writing extensible modules
Date
Msg-id A2D86136-4E28-4D31-8EE6-E95FAB0C5BF7@hi-media.com
Whole thread Raw
In response to Feedback on writing extensible modules  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Feedback on writing extensible modules  (Dimitri Fontaine <dfontaine@hi-media.com>)
List pgsql-hackers
Hi,

Le 20 mai 09 à 20:51, Simon Riggs a écrit :
> 1. Want some very clear and supported way to know whether Postgres is
> fully up. Currently, if you write _PG_init you sometimes need to
> know if
> it is being executed by LOAD or as a reload. So actual initialisation
> sometimes needs to happen outside of _PG_init.

And currently calling SPI_connect() from _PG_init will crash the
backend. I'll try to obtain a gdb backtrace, I've just been told about
pre_auth_delay and post_auth_delay parameters.

Regards,
--
dim



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: bootstrap table with TimestampTz type
Next
From: Pavel Stehule
Date:
Subject: Re: bootstrap table with TimestampTz type