Re: [BUGS] Patch to allow C extension modules to initialize/finish

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <gsstark(at)mit(dot)edu>
Cc: Joe Conway <mail(at)joeconway(dot)com>, David Fetter <david(at)fetter(dot)org>, rse(at)engelschall(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [BUGS] Patch to allow C extension modules to initialize/finish
Date: 2006-08-05 01:10:04
Message-ID: 23695.1154740204@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Gregory Stark <gsstark(at)mit(dot)edu> writes:
> So, for example if for someone wanted to
> have a persistent Oracle connection they could not open it pre-fork at library
> load time but they might want to open it immediately after the fork rather
> than when it's first used.

Uh ... why? Seems like all you're accomplishing there is to expend
cycles that might be wasted, if the particular session never uses
the feature.

In any case, the PG_init proposal neither adds nor takes away ability
to do stuff immediately post-fork, so I think that's an orthogonal
consideration.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Stark 2006-08-05 01:38:49 Re: [BUGS] Patch to allow C extension modules to initialize/finish
Previous Message Gregory Stark 2006-08-04 23:31:00 Re: [BUGS] Patch to allow C extension modules to initialize/finish

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2006-08-05 01:14:54 Re: 8.2 features status
Previous Message andrew 2006-08-05 01:04:25 Re: 8.2 features status