Threading in libpg on Solaris

Поиск
Список
Период
Сортировка
От Martin Renters
Тема Threading in libpg on Solaris
Дата
Msg-id 20020327112816.D7865@aspen.datafax.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: SET NOT NULL / DROP NOT NULL as an HREF!
Следующее
От: Bradley McLean
Дата:
Сообщение: Patch to add real cancel to ODBC driver