Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFXYo-0001kl-GC for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Nov 2017 03:43:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFXYn-00044u-Pu for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Nov 2017 03:43:21 +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 1eFXYn-00044k-Hq for pgsql-bugs@lists.postgresql.org; Fri, 17 Nov 2017 03:43:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eFXYg-00084Q-FF for pgsql-bugs@postgresql.org; Fri, 17 Nov 2017 03:43:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vAH3h7wU025086; Thu, 16 Nov 2017 22:43:07 -0500 From: Tom Lane To: xyh@nvn.xyz cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14916: psql \r is invalid in PostgreSQL 10 In-reply-to: <20171117025734.1473.85669@wrigleys.postgresql.org> References: <20171117025734.1473.85669@wrigleys.postgresql.org> Comments: In-reply-to xyh@nvn.xyz message dated "Fri, 17 Nov 2017 02:57:34 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25084.1510890187.1@sss.pgh.pa.us> Date: Thu, 16 Nov 2017 22:43:07 -0500 Message-ID: <25085.1510890187@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk xyh@nvn.xyz writes: > Hello, > In PostgreSQL 10.0 and 10.1 . > psql \r is invalid. Please say why you think this is "invalid". I'm pretty sure it was an intentional behavioral change (associated with the rewrite to support \if). In any case it's not obviously worse than before. \r is supposed to clear the current query input string; it says nothing about deleting history. regards, tom lane