Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1df4A7-0004fG-Pl for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Aug 2017 13:03:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1df4A6-0003u3-Hc for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Aug 2017 13:03:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1df49P-0002f2-Gy for pgsql-bugs@postgresql.org; Tue, 08 Aug 2017 13:02:23 +0000 Received: from boipeva.ensmp.fr ([194.214.158.136] helo=cc-tupan-roaming-b.ensmp.fr) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1df49I-0007s6-Fj for pgsql-bugs@postgresql.org; Tue, 08 Aug 2017 13:02:22 +0000 Received: from cri.ensmp.fr (13.237.219.88.rev.sfr.net [88.219.237.13]) (authenticated bits=0) by cc-tupan-roaming-b.ensmp.fr (8.15.2/8.15.2/JMMC-22/Oct/2013) with ESMTPSA id v78D25eV026623 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 8 Aug 2017 15:02:10 +0200 Date: Tue, 8 Aug 2017 15:02:05 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@lancre To: alain bourgeois cc: abo@zetescards.be, PostgreSQL Bugs List Subject: Re: BUG #14772: psql autocommit does not work In-Reply-To: Message-ID: References: <20170807141804.8423.21741@wrigleys.postgresql.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Miltered: at cc-tupan-roaming-b.ensmp.fr with ID 5989B64D.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 5989B64D.000 from 13.237.219.88.rev.sfr.net/13.237.219.88.rev.sfr.net/88.219.237.13/cri.ensmp.fr/ List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hello Alain, > testdb=# \set autocommit off; Hmmm. The special variable name is "AUTOCOMMIT", and you are creating an unrelated "autocommit" lower case variable instead. Client-side variable names are case sensitive. Maybe that was not a good idea, especially given than SQL is case insensitive, but it is probably too late to change that... With the right name you would get a clear error message. psql> \set AUTOCOMMIT off; unrecognized value "off;" for "AUTOCOMMIT": boolean expected I'm not sure what to do. Maybe generate a warning if a special variable name is used uncapitalized... > OK I found : \set AUTOCOMMIT false > (without any semicolumn) Yep. -- Fabien. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs