Thread: setting autocommit off in pgsql

setting autocommit off in pgsql

From
"Antony Paul"
Date:
Hi all
    How to set autocommit off. I want transactions which requires explicit
commit and after commit a new transaction is started as in Oracle sql plus.
When using start transaction it requires to type start transaction every
time.

Antony Paul

Re: setting autocommit off in pgsql

From
Michael Kleiser
Date:
Use BEGIN  to open a transaction ( that's the difference to Oracle )
and COMMIT or ROLLBACK to close it.

Antony Paul schrieb:
> Hi all
>     How to set autocommit off. I want transactions which requires
> explicit
> commit and after commit a new transaction is started as in Oracle sql
> plus.
> When using start transaction it requires to type start transaction every
> time.
>
> Antony Paul
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


Re: setting autocommit off in pgsql

From
Tom Lane
Date:
"Antony Paul" <antonypaul24@hotmail.com> writes:
>     How to set autocommit off.

In psql, \set AUTOCOMMIT off

            regards, tom lane