Skip site navigation (1) Skip section navigation (2)

BEGIN strange behaviour

From: luca(dot)ciciriello(at)email(dot)it
To: pgsql-general(at)postgresql(dot)org
Cc: alessandra(dot)autunno(at)galileoavionica(dot)it
Subject: BEGIN strange behaviour
Date: 2007-11-22 13:10:49
Message-ID: 392887e02b4aca41115cc6c91fe695e1@ (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Hi All.
I've sperimented a strange behaviour using the command BEGIN and COMMIT in a
multi-threaded Linux environment.
In one of the two thread I use I've got the following message after
PQexec(myconn, "BEGIN;");  

WARNING: there is already a transaction in progress

And after the command  PQexec(myconn, "COMMIT;");  (always in the same

I've got the message 

WARNING: there is no transaction in progress.

After these warnings the elaboration is freezing when the next PQexec is

I have the same behaviour even if the second thread is operating on a
different table than the first thread.

The same commands (inside the same code) runs fine in Windows and in MacOS

Any Idea?

Thanks in advance.


 --, the professional e-mail, gratis per te:
 Prova 1bitmore Newsletter il servizio per creare newsletter in modo
semplice e veloce, senza bisogno di conoscenze di grafica o di
Gratis per 30 giorni!

 Clicca qui:


pgsql-general by date

Next:From: Sorin N. CiolofanDate: 2007-11-22 13:19:06
Subject: backup of postgres scheduled with cron
Previous:From: Martijn van OosterhoutDate: 2007-11-22 12:48:37
Subject: Re: Postgres table size

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group