Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1df7Qd-0000YQ-W7 for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Aug 2017 16:32:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1df7Qd-00018P-Au for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Aug 2017 16:32:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1df7Qc-00017r-OI for pgsql-bugs@postgresql.org; Tue, 08 Aug 2017 16:32:22 +0000 Received: from boipeva.ensmp.fr ([194.214.158.136] helo=cc-tupan-roaming-b.ensmp.fr) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1df7QZ-0006vq-69 for pgsql-bugs@postgresql.org; Tue, 08 Aug 2017 16:32: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 v78GWFFA021866 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 8 Aug 2017 18:32:16 +0200 Date: Tue, 8 Aug 2017 18:32:15 +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 5989E78F.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: 5989E78F.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 > also, the semicolumn, needed for some statementds (sql) but not all. Yes, it is pretty strange. The backslash command are outside of SQL and finished on the line. You can use them anywhere: psql> SELECT \set x 2 1 \set y 3 ; # 1 psql> \echo :x :y # 2 3 Basically SQL & backslash commands are unrelated. The SQL is sent to the server, the backslash is executed on the client... -- Fabien. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs