Search Postgresql Archives

Orthodox use of PQtransactionStatus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All.
Does somebody know where (some internet sites or sample code) I can achieve
a good understanding in the use of the 
status PQTRANS_IDLE, PQTRANS_ACTIVE, PQTRANS_INTRANS, PQTRANS_INERROR,
PQTRANS_UNKNOWN using the lib function
PQtransactionStatus?
I need to use this flags in order to discipline some BEGIN-COMMIT blocks in
a multithreading Windows/Linux 
environment.

Each thread uses a separate db connection and shouldn't have any interaction
with the other threads, but I still
have messages as "WARNING: There is already a transaction in progress" and
"WARNING: There is no transaction in
progress". A further information is that the DB operation involved in each
thread is a store in a table. This table
is the same for each thread.

Thanks in advance.

Luca. 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 PARTI CON TODOMONDO: occasioni speciali a prezzi straordinari, fino al 50%
di sconto su voli e viaggi!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7277&d=20071206



---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux