Re: Libpq and transactions

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Brijesh Shrivastav <Bshrivastav(at)esri(dot)com>
Cc: PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Libpq and transactions
Date: 2004-07-07 07:05:20
Message-ID: 40EBA0B0.9040707@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On 2004-07-07 01:50, Użytkownik Brijesh Shrivastav napisał:
> Hi!
>
> I have a question about how transaction behaves in libpq library.
> It is very clear in doc that PQexec treats each command (which could
> comprise of more than one sql command) as a single transactions.

Not exactly. PQexec treats each command as a single transaction only
when you don't add "begin" before your query. If you add "begin" before
first query - it will finish after "commit" or "rollback".

Regards,
Tomasz Myrta

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Brijesh Shrivastav 2004-07-07 16:28:47 Re: Libpq and transactions
Previous Message Greg Stark 2004-07-07 01:44:17 Re: pgin.tcl pg_exec_prepared slow (was: Released...)