X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7398CD1B342 for ; Wed, 7 Jul 2004 04:07:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95365-10 for ; Wed, 7 Jul 2004 07:06:31 +0000 (GMT) Received: from serwer.skawsoft.com.pl (rtr.skawsoft.com.pl [213.25.37.67]) by svr1.postgresql.org (Postfix) with ESMTP id D9FCCD1B248 for ; Wed, 7 Jul 2004 04:04:31 -0300 (ADT) Received: from [192.168.24.1] (unknown [80.51.253.210]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 35F482B3CD; Wed, 7 Jul 2004 09:04:06 +0200 (CEST) Message-ID: <40EBA0B0.9040707@klaster.net> Date: Wed, 07 Jul 2004 09:05:20 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.7) Gecko/20040514 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Brijesh Shrivastav Cc: PostgreSQL Interfaces Subject: Re: Libpq and transactions References: <491DC5F3D279CD4EB4B157DDD62237F404E27EFD@zipwire.esri.com> In-Reply-To: <491DC5F3D279CD4EB4B157DDD62237F404E27EFD@zipwire.esri.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=NO_DNS_FOR_FROM X-Spam-Level: * X-Archive-Number: 200407/15 X-Sequence-Number: 5021 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