Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn64X-0001d5-7z for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Aug 2018 17:47:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fn64V-0000im-Cd for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Aug 2018 17:47:03 +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.89) (envelope-from ) id 1fn64V-0000if-2z for pgsql-bugs@lists.postgresql.org; Tue, 07 Aug 2018 17:47:03 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fn64S-0002oO-DD for pgsql-bugs@lists.postgresql.org; Tue, 07 Aug 2018 17:47:01 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fn64O-0004Mj-De; Tue, 07 Aug 2018 13:46:56 -0400 Date: Tue, 7 Aug 2018 13:46:56 -0400 From: Bruce Momjian To: Tom Lane Cc: Andrew Gierth , ladayaroslav@yandex.ru, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15273: Lexer bug with UESCAPE Message-ID: <20180807174656.GF7297@momjian.us> References: <153124291307.1408.15617588871690313363@wrigleys.postgresql.org> <23850.1531252251@sss.pgh.pa.us> <87bmbekq90.fsf@news-spur.riddles.org.uk> <18384.1531343105@sss.pgh.pa.us> <18952.1531343715@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18952.1531343715@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Jul 11, 2018 at 05:15:15PM -0400, Tom Lane wrote: > Oh, and one other thing: > > regression=# select 'foo' > regression-# 'bar'; > ?column? > ---------- > foobar > (1 row) > > regression=# select 'foo' -- baz > 'bar'; > ?column? > ---------- > foobar > (1 row) > > regression=# select 'foo' /* baz */ > 'bar'; > ERROR: syntax error at or near "'bar'" > LINE 2: 'bar'; > ^ > > So we already have the exact same restriction in all multi-line forms > of literal. That's far older than the UESCAPE business, and nobody's > complained about it that I can recall. Do we have any comment in the lexer C files about this so we don't revisit the issue? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +