Re: Reg:Autocommit
От | Shreeyansh Dba |
---|---|
Тема | Re: Reg:Autocommit |
Дата | |
Msg-id | CAGDYbUObLuim7nkO0sUjRvisvpiDAaFwEB8msnX5UgdJZ1+gXw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Reg:Autocommit (Raghavendra <raghavendra.rao@enterprisedb.com>) |
Список | pgsql-admin |
Hi Raghavendra,
Thank you for the solution, It is working fine.On Mon, Jul 27, 2015 at 12:33 PM, Raghavendra <raghavendra.rao@enterprisedb.com> wrote:
On Saturday, July 25, 2015, Shreeyansh Dba <shreeyansh2014@gmail.com> wrote:I tried it but the "autocommit" is showing "on" as mention below.Hi David ,Thanks for reply,
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.+1You can try this to check out what setting is set in psql variable.-bash-4.2$ psqlpsql.bin (9.4.4)Type "help" for help.postgres=# \set AUTOCOMMIT offpostgres=# \echo :AUTOCOMMIToffpostgres=# \set AUTOCOMMIT onpostgres=# \echo :AUTOCOMMITonpostgres=#---Regards,RaghavendraEnterpriseDB Corporation
В списке pgsql-admin по дате отправления: