pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: Brijesh Shrivastav <Bshrivastav@esri.com>
Cc: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Libpq and transactions
Date: Wed, 07 Jul 2004 09:05:20 +0200
Message-ID: <40EBA0B0.9040707@klaster.net> (raw)
In-Reply-To: <491DC5F3D279CD4EB4B157DDD62237F404E27EFD@zipwire.esri.com>
References: <491DC5F3D279CD4EB4B157DDD62237F404E27EFD@zipwire.esri.com>

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



view thread (3+ messages)  latest in thread

Message-ID: <40EBA0B0.9040707@klaster.net>
Permalink:  ../40EBA0B0.9040707@klaster.net/
Also on:    postgresql.org/message-id/40EBA0B0.9040707@klaster.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jasiek@klaster.net, Bshrivastav@esri.com
  Subject: Re: Libpq and transactions
  In-Reply-To: <40EBA0B0.9040707@klaster.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox