Search Postgresql Archives

Re: Implicit transaction not rolling back after error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 20, 2012, at 3:40 PM, Rob Sargent <robjsargent@xxxxxxxxx> wrote:

> On 12/20/2012 04:33 PM, Stephen Touset wrote:
> 
>> So yes, AUTOCOMMIT is definitely on.
> 
> What does \set show when entered from the psql command line?

   test=> \set
   AUTOCOMMIT = 'OFF'

*facepalm*.

Turns out someone put a .psqlrc with autocommit off in /etc/skel when the box was originally set up as a replacement for our previous app server. Account users were created afterwards, and the change propagated to our application account as well as all of our individual accounts.

Why, though, would `SHOW AUTOCOMMIT` lie? And `SET AUTOCOMMIT TO off` says that capability is disabled. So how does the config file manage to do it?

Thanks for the insight!

-- 
Stephen Touset
Senior Software Engineer
stephen.touset@xxxxxxxxxxxx





-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux