Re: (PostgreSQL 17) View usage resulting in 'ERROR: unrecognized node type: 2'
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Martin Goodson <kaemaril@googlemail.com>
Cc: "pgsql-generallists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2026-03-13T02:22:49Z
Lists: pgsql-general
Martin Goodson <kaemaril@googlemail.com> 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%40postgresql.org