Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8why-0006LS-DJ for pgsql-hackers@arkaria.postgresql.org; Thu, 11 May 2017 22:37:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d8whx-0001ud-W6 for pgsql-hackers@arkaria.postgresql.org; Thu, 11 May 2017 22:37:18 +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.84_2) (envelope-from ) id 1d8whx-0001uS-8x for pgsql-hackers@postgresql.org; Thu, 11 May 2017 22:37:17 +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.84_2) (envelope-from ) id 1d8whu-0003e9-Th for pgsql-hackers@postgresql.org; Thu, 11 May 2017 22:37:16 +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 v4BMbCTN012495; Thu, 11 May 2017 18:37:12 -0400 From: Tom Lane To: Alvaro Herrera cc: Simon Riggs , Andrew Dunstan , Tomas Vondra , PostgreSQL-development , Dean Rasheed Subject: Re: WITH clause in CREATE STATISTICS In-reply-to: <20170511221330.5akgbsoyx6wm4u34@alvherre.pgsql> References: <20170511221330.5akgbsoyx6wm4u34@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 11 May 2017 19:13:30 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12493.1494542232.1@sss.pgh.pa.us> Date: Thu, 11 May 2017 18:37:12 -0400 Message-ID: <12494.1494542232@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 Alvaro Herrera writes: > BTW the new castNode() family of macros don't work with Value nodes > (because the tags are different depending on what's stored, but each > type does not have its own struct. Oh well.) Yeah. Value nodes are pretty much of a wart --- it's not clear to me that they add anything compared to just having a separate node type for each of the possible subclasses. It's never bothered anyone enough to try to replace them, though. I'll take a look at the patch later. 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