Re: Reg:Autocommit

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Reg:Autocommit
Date: 2015-07-25 14:44:43
Message-ID: CAKFQuwYeq_-D2sDv--zM6KXTGifFd4Bx2T9gCX3afbRKDm=phg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Saturday, July 25, 2015, Shreeyansh Dba <shreeyansh2014(at)gmail(dot)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.
>
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Raghavendra 2015-07-27 07:03:56 Re: Reg:Autocommit
Previous Message Scott Ribe 2015-07-25 13:29:45 Re: Reg:Autocommit