Re: [SQL] TRANSACTIONS and TCP/IP - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] TRANSACTIONS and TCP/IP
Date
Msg-id 23218.945315752@sss.pgh.pa.us
Whole thread Raw
In response to TRANSACTIONS and TCP/IP  (Barry Baldwin <bbaldwin@indyme.com>)
List pgsql-sql
Barry Baldwin <bbaldwin@indyme.com> writes:
> I've got postgres 6.5.2 running on a Linux box and I'm developing a client
> app in Delphi.  The client sends SQL commands via TCP/IP.  
> I've tried starting a transaction by sending the BEGIN command and then I
> update a table and then send a ROLLBACK command to try 
> and abort the transaction.  It doesn't seem to be working.

I don't know anything about Delphi, but it sure sounds like something
in the interface software you're using is sending BEGIN and COMMIT
commands for you.  This feature is commonly called autocommit --- look
for documentation on how to turn it off.

> I tried all of the above in psql and it works fine.  Is this something that
> just won't work over a TCP/IP connection?

No, connection type hasn't got anything to do with it...
        regards, tom lane


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] having with sub select?
Next
From: Howie
Date:
Subject: Re: [SQL] Deleting large objects from database.