pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brijesh Shrivastav <Bshrivastav@esri.com>
To: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Libpq and transactions
Date: Wed, 7 Jul 2004 09:28:47 -0700
Message-ID: <491DC5F3D279CD4EB4B157DDD62237F404E27F00@zipwire.esri.com> (raw)

Thanks for clarification! I got confused with document wording.

Brijesh Shrivastav

-----Original Message-----
From: Tomasz Myrta [mailto:jasiek@klaster.net]
Sent: Wednesday, July 07, 2004 12:05 AM
To: Brijesh Shrivastav
Cc: PostgreSQL Interfaces
Subject: Re: [INTERFACES] Libpq and transactions


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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html




view thread (3+ messages)

Message-ID: <491DC5F3D279CD4EB4B157DDD62237F404E27F00@zipwire.esri.com>
Permalink:  ../491DC5F3D279CD4EB4B157DDD62237F404E27F00@zipwire.esri.com/
Also on:    postgresql.org/message-id/491DC5F3D279CD4EB4B157DDD62237F404E27F00@zipwire.esri.com

 · 

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: Bshrivastav@esri.com
  Subject: Re: Libpq and transactions
  In-Reply-To: <491DC5F3D279CD4EB4B157DDD62237F404E27F00@zipwire.esri.com>

* 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