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 1fsrwT-00022E-Bu for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Aug 2018 15:54:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fsrwR-0004RX-Qf for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Aug 2018 15:54:35 +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.89) (envelope-from ) id 1fsrwR-0004RQ-Jm for pgsql-hackers@lists.postgresql.org; Thu, 23 Aug 2018 15:54:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fsrwO-0002ue-TW for pgsql-hackers@postgresql.org; Thu, 23 Aug 2018 15:54:34 +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 w7NFsUXI029361; Thu, 23 Aug 2018 11:54:30 -0400 From: Tom Lane To: Andrew Gierth cc: pgsql-hackers@postgresql.org Subject: Re: A really subtle lexer bug In-reply-to: <871sap1658.fsf@news-spur.riddles.org.uk> References: <87va851ppl.fsf@news-spur.riddles.org.uk> <87ftz90yma.fsf@news-spur.riddles.org.uk> <18470.1535036115@sss.pgh.pa.us> <871sap1658.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Thu, 23 Aug 2018 16:29:23 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29359.1535039670.1@sss.pgh.pa.us> Date: Thu, 23 Aug 2018 11:54:30 -0400 Message-ID: <29360.1535039670@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > "Tom" == Tom Lane writes: > Tom> * Some regression tests exercising these code paths might be a > Tom> good thing. > Agreed. Any preferences where they should go? There's not really a "lexer/grammar" test script. Maybe you could drop it into create_operator.sql, especially if you need to make any funny operators to test with? regards, tom lane