Re: Postgres 7.4 : ECPG not Thread-safe

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Thierry Missimilly <THIERRY(dot)MISSIMILLY(at)BULL(dot)NET>
Cc: postgres general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres 7.4 : ECPG not Thread-safe
Date: 2003-11-07 17:08:46
Message-ID: 200311071708.hA7H8kZ25188@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thierry Missimilly wrote:
> Please enter a FULL description of your problem:
> ------------------------------------------------
> I think i have a Thread-safe problem. PostgreSQL developpers will find a
> test program to reproduce it on their lab.
>
> I have, already sent this to pgsql-general and pgsql-hacker, but get
> back not answers. But neve mind.
>
> I've built Postgresql with the option --enable-thread-safety --with-tcl.
>
> And now run a pgbench like program call pgbch.pgc (attached with this
> mail).
>
> The main differences of pgbch.pgc are :
> 1) Pro*c code
> 2) Multi-threaded
> 3) Some specific code for Oracle
> 4) Some specific dynamic trace for debug
>

I have worked with this user and found they were using EXEC SQL from
different threads, but were not using the "AT" clause to force the
threads to use their own private connection, so there was no threading
bug in our code.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-11-07 17:17:59 Re: int8 primary keys still not using index without manual
Previous Message Richard Huxton 2003-11-07 17:05:48 Re: Service doesnt UP!!!!