Re: [GENERAL] Passing a PGconn * between two processes on Unix like systems

2010-07-22 Thread Alban Hertroys
On 22 Jul 2010, at 8:35, Marc Balmer wrote: > When a process forks() and both the parent and child process continue to > use a previously opened PGconn * structure, is that behaviour defined? I recall having done this successfully, but you have to take care to synchronise access to the connecti

Re: [GENERAL] Passing a PGconn * between two processes on Unix like systems

2010-07-22 Thread Magnus Hagander
On Thu, Jul 22, 2010 at 08:35, Marc Balmer wrote: > I two Unix/ process related questions: > > Is there a documented way to pass around an (opened) PGconn * structure > between two processes on Unix? No. You can probably hack up something yourself but you'd have to look inside the struct which i

[GENERAL] Passing a PGconn * between two processes on Unix like systems

2010-07-21 Thread Marc Balmer
I two Unix/ process related questions: Is there a documented way to pass around an (opened) PGconn * structure between two processes on Unix? When a process forks() and both the parent and child process continue to use a previously opened PGconn * structure, is that behaviour defined? Thanks, Ma