Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVlmE-0008Nr-GZ for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jul 2017 21:36:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dVlmE-00013J-0P for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Jul 2017 21:36:02 +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 1dVlki-0006jq-8q for pgsql-hackers@postgreSQL.org; Thu, 13 Jul 2017 21:34:28 +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 1dVlkb-0004ms-SY for pgsql-hackers@postgreSQL.org; Thu, 13 Jul 2017 21:34:27 +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 v6DLYLhf023863 for ; Thu, 13 Jul 2017 17:34:21 -0400 From: Tom Lane To: pgsql-hackers@postgreSQL.org Subject: Inadequate infrastructure for NextValueExpr MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23861.1499981661.1@sss.pgh.pa.us> Date: Thu, 13 Jul 2017 17:34:21 -0400 Message-ID: <23862.1499981661@sss.pgh.pa.us> 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 Somebody decided they could add a new primnode type without bothering to build out very much infrastructure for it. Thus: regression=# create table foo (f1 int, f2 int generated always as identity); CREATE TABLE regression=# insert into foo values(1); INSERT 0 1 regression=# explain verbose insert into foo values(1); ERROR: unrecognized node type: 146 because ruleutils.c has never heard of NextValueExpr. The lack of outfuncs/readfuncs support for it is rather distressing as well. That doesn't break parallel queries today, because (I think) you can't get one of these nodes in a parallelizable query, but it is going to cause problems for debugging. It will also break (more or less) pg_stat_statements. I also wonder whether costsize.c oughtn't be charging some estimated execution cost for it. 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