Unix Technical Forum

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

This is a discussion on Re: [BUGS] Patch to allow C extension modules to initialize/finish within the pgsql Hackers forums, part of the PostgreSQL category; --> Greg Stark <gsstark@mit.edu> writes: > Tom Lane <tgl@sss.pgh.pa.us> writes: >> In any case, the PG_init proposal neither adds nor ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-12-2008, 04:54 AM
Tom Lane
 
Posts: n/a
Default Re: [BUGS] Patch to allow C extension modules to initialize/finish

Greg Stark <gsstark@mit.edu> writes:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
>> 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.


> So is the only question whether there's a need to do stuff pre-fork?


That's not a question, that's a well-established fact --- pl/R certainly
needs it, and any other library that has expensive setup work that can
propagate through a fork does too.

I think adding a hook to allow a postmaster-preloaded library to execute
some work immediately post-fork is a separate consideration. Feel free
to propose it if you want, but I don't see what it's got to do with the
patch on the table.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:06 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com