Threading in libpg on Solaris - Mailing list pgsql-hackers

From Martin Renters
Subject Threading in libpg on Solaris
Date
Msg-id 20020327112816.D7865@aspen.datafax.com
Whole thread Raw
List pgsql-hackers
I'm working on getting libpq to function in a multi-threaded program on
Solaris and I was getting errors back from the library about
being unable to receive from the server.  It turns out that on Solaris
you need to compile libpq with the -D_REENTRANT flags set so that
it defines errno to be a function call instead of a global variable.
Once I did this the program worked without any problems.

You want to consider making this flag standard (or at least provide
a configure option to compile a thread-ready version of libpq) as it
may save someone else the hassle of trying to figure out what went
wrong.

Martin


pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: SET NOT NULL / DROP NOT NULL as an HREF!
Next
From: Bradley McLean
Date:
Subject: Patch to add real cancel to ODBC driver