Re: ECPG, threading and pooling - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ECPG, threading and pooling
Date
Msg-id 711.1043681213@sss.pgh.pa.us
Whole thread Raw
In response to Re: ECPG, threading and pooling  (Michael Meskes <meskes@postgresql.org>)
Responses Re: ECPG, threading and pooling
List pgsql-hackers
Michael Meskes <meskes@postgresql.org> writes:
>> Keep the thread hacking on the client side, please.  Isn't there one of
>> the ecpg/include/ files that would be suitable?

> Yes, there is. Better make that there are. There is a file called
> extern.h both in preproc as well as in lib and each file in the
> directory does include the extern.h in its own directory. So we just
> need to add it twice I guess.

The preproc code doesn't need to be thread-safe does it?

One issue we already fought with for large-file support is that that
#define _REENTRANT probably needs to appear before you start to include
any system header files.  You may find that the best way to handle it
is to make it a "-D_REENTRANT" added to CPPFLAGS (only within ecpg/lib),
rather than trying to find a safe place to put it in the .h files.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Antti Haapala
Date:
Subject: Re: Switching connection on the fly
Next
From: "Reggie Burnett"
Date:
Subject: Re: Request for qualified column names