Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9D5c-0004n3-6s for pgsql-hackers@arkaria.postgresql.org; Fri, 12 May 2017 16:06:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d9D5a-0004mw-RF for pgsql-hackers@arkaria.postgresql.org; Fri, 12 May 2017 16:06:46 +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 1d9D43-0001zn-Pz for pgsql-hackers@postgresql.org; Fri, 12 May 2017 16:05:11 +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.84_2) (envelope-from ) id 1d9D40-0002b7-DO for pgsql-hackers@postgresql.org; Fri, 12 May 2017 16:05:11 +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 v4CG4su0022030; Fri, 12 May 2017 12:04:55 -0400 From: Tom Lane To: Heikki Linnakangas cc: pgsql-hackers Subject: Re: eval_const_expresisions and ScalarArrayOpExpr In-reply-to: <4b14a9a5-01c2-4042-3ec9-cf27149302a5@iki.fi> References: <3be3b82c-e29c-b674-2163-bf47d98817b1@iki.fi> <23186.1494516060@sss.pgh.pa.us> <4b14a9a5-01c2-4042-3ec9-cf27149302a5@iki.fi> Comments: In-reply-to Heikki Linnakangas message dated "Thu, 11 May 2017 19:20:55 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22028.1494605094.1@sss.pgh.pa.us> Date: Fri, 12 May 2017 12:04:54 -0400 Message-ID: <22029.1494605094@sss.pgh.pa.us> 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 Heikki Linnakangas writes: > On 05/11/2017 06:21 PM, Tom Lane wrote: >> Yeah, I think it's a lack-of-round-tuits situation. Your patch reminds >> me of a more ambitious attempt I made awhile back to reduce the amount >> of duplicative boilerplate in eval_const_expressions. I think I wrote >> it during last year's beta period, stashed it because I didn't feel like >> arguing for applying it right then, and then forgot about it. > Hmph, now we're almost in beta period again. :-(. Actually, I now remember that I wrote that while at Salesforce (because they'd run into the problem that constant ArrayRef expressions weren't simplified). So that means it's been languishing in a git branch for *two* years. I'm kind of inclined to push it before it gets forgotten again ;-) Looking at the patch, it still seems solid, but I remember that one thing I was concerned about was whether the more generalized code was any slower. Not sure about a good test case to measure that though --- const-simplification isn't a large chunk of most workloads. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers