Re: Passing a PGconn * between two processes on Unix like systems - Mailing list pgsql-general

From Alban Hertroys
Subject Re: Passing a PGconn * between two processes on Unix like systems
Date
Msg-id 6A137B14-159B-4D35-95FA-2220C624E394@solfertje.student.utwente.nl
Whole thread Raw
In response to Passing a PGconn * between two processes on Unix like systems  (Marc Balmer <marc@msys.ch>)
List pgsql-general
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 connection. You can't
havemultiple transactions running in parallel on one connection. 

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.


!DSPAM:737,4c482748286211410335719!



pgsql-general by date:

Previous
From: Oliver Kohll - Mailing Lists
Date:
Subject: Re: locating cities within a radius of another
Next
From: Satoshi Nagayasu
Date:
Subject: ECPG - Some errno definitions don't match to the manual