Re: Deadlock with one table - PostgreSQL is doing it right - Mailing list pgsql-general

From Rakesh Kumar
Subject Re: Deadlock with one table - PostgreSQL is doing it right
Date
Msg-id trinity-94ad7726-ab21-46dc-aca6-30548db2a348-1513889417726@3c-app-mailcom-lxa06
Whole thread Raw
In response to Re: Deadlock with one table - PostgreSQL is doing it right  (Hans Schou <hans.schou@gmail.com>)
Responses Re: Deadlock with one table - PostgreSQL is doing it right
List pgsql-general
> The tool Im using is "sqlplus". By default you are always in a transaction and
> auto-commit only occur on exit. 

Its been a while since I worked with oracle. I remember I use to add the following two lines at the top:
SET AUTOCOMMIT OFF
whenever SQLERROR EXIT ROLLBACK

IIRC, adding the above ensures that at the first error, oracle will rollback all changes , unless you add a DDL in the
transactionwhich auto commits all changes. 


pgsql-general by date:

Previous
From: Hans Schou
Date:
Subject: Re: Deadlock with one table - PostgreSQL is doing it right
Next
From: John R Pierce
Date:
Subject: Re: Foreign Data Wrapper