Re: Reg:Autocommit - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Reg:Autocommit
Date
Msg-id CAKFQuwYeq_-D2sDv--zM6KXTGifFd4Bx2T9gCX3afbRKDm=phg@mail.gmail.com
Whole thread Raw
In response to Re: Reg:Autocommit  (Shreeyansh Dba <shreeyansh2014@gmail.com>)
Responses Re: Reg:Autocommit  (Raghavendra <raghavendra.rao@enterprisedb.com>)
List pgsql-admin
On Saturday, July 25, 2015, Shreeyansh Dba <shreeyansh2014@gmail.com> wrote:
Hi David ,
Thanks for reply,
I tried it but the "autocommit" is showing "on"  as mention below.

postgres=# \set autocommit off;

postgres=# show autocommit;
 autocommit
------------
 on
(1 row)

The first command sets a psql variable named autocommit.
The second commands show the sql guc named autocommit.
These are two different things.
Try "select :AUTOCOMMIT"
Note, in the psql variable capitalization matters.  You must use all-caps.

David J.

pgsql-admin by date:

Previous
From: Scott Ribe
Date:
Subject: Re: Reg:Autocommit
Next
From: Raghavendra
Date:
Subject: Re: Reg:Autocommit