Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w0sB0-002HYW-1u for pgsql-general@arkaria.postgresql.org; Fri, 13 Mar 2026 02:22:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w0sAy-001LLq-3D for pgsql-general@arkaria.postgresql.org; Fri, 13 Mar 2026 02:22:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w0sAy-001LLf-2A for pgsql-general@lists.postgresql.org; Fri, 13 Mar 2026 02:22:57 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w0sAw-00000001ruW-1ncz for pgsql-general@lists.postgresql.org; Fri, 13 Mar 2026 02:22:56 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 62D2MnGk1545213; Thu, 12 Mar 2026 22:22:50 -0400 From: Tom Lane To: Martin Goodson cc: "pgsql-generallists.postgresql.org" Subject: Re: (PostgreSQL 17) View usage resulting in 'ERROR: unrecognized node type: 2' In-reply-to: References: Comments: In-reply-to Martin Goodson message dated "Thu, 12 Mar 2026 21:02:59 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4798.1773368569.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 12 Mar 2026 22:22:49 -0400 Message-ID: <4799.1773368569@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Martin Goodson writes: > I've exported some views from a PG14 database and loaded them into a = > brand new PG17 database via a plain text format pg_dump. > No errors were reported during the dump, so no problems creating the = > views reported. > However, attempting to query the views - which are pretty complex, to be= = > fair - result in the query erroring immediately with 'ERROR: = > unrecognized node type: 2' That is certainly a bug, but there's zero hope of anyone fixing it without a reproducible test case to poke at. Looking at our commit log, there was a fix in 17.3 for a problem that resulted in "unrecognized node type" errors [1], so it'd behoove you to make sure you are running 17.recent before spending any more effort. regards, tom lane [1] https://www.postgresql.org/message-id/flat/18778-24cd399df6c806af%40po= stgresql.org