pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: alain bourgeois <a.bourgeois@zetescards.be>
Cc: abo@zetescards.be, PostgreSQL Bugs List <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14772: psql autocommit does not work
Date: Tue, 8 Aug 2017 15:02:05 +0200 (CEST)
Message-ID: <alpine.DEB.2.20.1708081456470.10425@lancre> (raw)
In-Reply-To: <OFFF917A86.8821C4A3-ONC1258176.002D1147-C1258176.002D3EBC@LocalDomain>
References: <20170807141804.8423.21741@wrigleys.postgresql.org>
	<alpine.DEB.2.20.1708071629070.20784@lancre>
	<OFFF917A86.8821C4A3-ONC1258176.002D1147-C1258176.002D3EBC@LocalDomain>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>


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



view thread (6+ messages)  latest in thread

Message-ID: <alpine.DEB.2.20.1708081456470.10425@lancre>
Permalink:  ../alpine.DEB.2.20.1708081456470.10425@lancre/
Also on:    postgresql.org/message-id/alpine.DEB.2.20.1708081456470.10425@lancre

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: coelho@cri.ensmp.fr, a.bourgeois@zetescards.be
  Subject: Re: BUG #14772: psql autocommit does not work
  In-Reply-To: <alpine.DEB.2.20.1708081456470.10425@lancre>
  References: <20170807141804.8423.21741@wrigleys.postgresql.org> <alpine.DEB.2.20.1708071629070.20784@lancre> <OFFF917A86.8821C4A3-ONC1258176.002D1147-C1258176.002D3EBC@LocalDomain> <alpine.DEB.2.20.1708081456470.10425@lancre>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox