From: | "Adam Ciazynski" <adam(dot)ciazynski(at)gmail(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | ECPG and multiple threads |
Date: | 2006-11-10 08:08:31 |
Message-ID: | 52940eef0611100008k4d1f481fvbfb7f4db6f4997f8@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Hi,
I'm porting an embedded-SQL application to PostgreSQL so embedded sql
is a must for me. My application is multi-threaded. SQL queries are
used by several threads. The program keeps terminating unexpectedly in
deemingly "innocent" places.
I figured out that ecpg library can be responsible for this.
Here:
http://www.postgresql.org/docs/8.1/interactive/ecpg-process.html
I found the information that:
"The ecpg library is thread-safe if it is built using the
--enable-thread-safety command-line option to configure."
However my instance of PostgreSQL was installed from _binaries_ that I
downloaded from http://www.postgresql.org
The questions:
1. How do I know how my copy of libecpg.lib was built and if it is thread-safe?
2. Is there a place I could get the thread-safe version of this
library if I don't want to get into building the whole stuff from the
source code?
Thanks in advance.
Adam.
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2006-11-10 11:58:46 | Re: ECPG and multiple threads |
Previous Message | Guido Barosio | 2006-11-10 02:50:32 | Re: memory |