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 1fdMVT-0003uI-8q for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Jul 2018 21:18:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdMVR-0004FE-WA for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Jul 2018 21:18:37 +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 1fdMSG-0002f2-4X for pgsql-bugs@lists.postgresql.org; Wed, 11 Jul 2018 21:15:20 +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 1fdMSC-0005KX-QE for pgsql-bugs@lists.postgresql.org; Wed, 11 Jul 2018 21:15:18 +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 w6BLFFo5018953; Wed, 11 Jul 2018 17:15:15 -0400 From: Tom Lane To: Andrew Gierth cc: ladayaroslav@yandex.ru, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15273: Lexer bug with UESCAPE In-reply-to: <18384.1531343105@sss.pgh.pa.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> Comments: In-reply-to Tom Lane message dated "Wed, 11 Jul 2018 17:05:05 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18951.1531343715.1@sss.pgh.pa.us> Date: Wed, 11 Jul 2018 17:15:15 -0400 Message-ID: <18952.1531343715@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. regards, tom lane