Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqMdV-00040V-07 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 15:23:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqMdU-0007T0-8F for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Apr 2016 15:23:20 +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 1aqMc8-0005te-HQ for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 15:21:56 +0000 Received: from hermes.doblenet.net ([213.27.130.15]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aqMc4-00025R-Tc for pgsql-hackers@postgresql.org; Wed, 13 Apr 2016 15:21:56 +0000 Received: from vortex.hq.g4ii.com (hq.g4ii.com [88.26.239.182]) by hermes.doblenet.net (Postfix) with ESMTPSA id 3qlSFr1PFrz1j; Wed, 13 Apr 2016 17:21:52 +0200 (CEST) Subject: Re: Parser extensions (maybe for 10?) To: Craig Ringer References: <570C7B5A.9070309@gmail.com> <570E53A1.2000405@adv-solutions.net> Cc: PostgreSQL Hackers From: =?UTF-8?B?Sm9zw6kgTHVpcyBUYWxsw7Nu?= Message-ID: <570E6410.1060906@adv-solutions.net> Date: Wed, 13 Apr 2016 17:21:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------020001080007050906050105" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------020001080007050906050105 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 04/13/2016 04:43 PM, Craig Ringer wrote: > On 13 April 2016 at 22:11, José Luis Tallón > > wrote: > [snip] > > I can certainly prepare a small patch for the first commitfest of > 9.7 if this sounds viable. > > > I'd be surprised if it was popular. I am familiar with some cases where it would have been a lifesaver.... > It's hard to imagine a way to do it robustly when dealing with > pre-lexer input, unless you're doing simple pattern matching to > identify and replace whole statements. INDEED. No intention whatsoever to do much more than that O:-) / J.L. --------------020001080007050906050105 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 04/13/2016 04:43 PM, Craig Ringer wrote:
On 13 April 2016 at 22:11, José Luis Tallón <jltallon@adv-solutions.net> wrote:
[snip]

I can certainly prepare a small patch for the first commitfest of 9.7 if this sounds viable.

I'd be surprised if it was popular.

I am familiar with some cases where it would have been a lifesaver....

It's hard to imagine a way to do it robustly when dealing with pre-lexer input, unless you're doing simple pattern matching to identify and replace whole statements.

INDEED. No intention whatsoever to do much more than that  O:-)


    / J.L.

--------------020001080007050906050105--