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 1w0nBU-002DBq-08 for pgsql-general@arkaria.postgresql.org; Thu, 12 Mar 2026 21:03:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w0nBQ-0006TG-2G for pgsql-general@arkaria.postgresql.org; Thu, 12 Mar 2026 21:03:05 +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 1w0nBQ-0006T7-0f for pgsql-general@lists.postgresql.org; Thu, 12 Mar 2026 21:03:04 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w0nBN-00000001pTQ-41F6 for pgsql-general@lists.postgresql.org; Thu, 12 Mar 2026 21:03:03 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-439c944bb62so1189887f8f.3 for ; Thu, 12 Mar 2026 14:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1773349380; x=1773954180; darn=lists.postgresql.org; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=CyXZB+dQA04Zj7lNOuu04c62vdAoXoHzZz56WXT1k+4=; b=HSPtC9C55A4PqAuRQDkJxhT3fUZ6SVv7eaXXp9yetsoEXu+om9suBIahI9AJFcZu+u FbSjH3n4jJyosmgegqAUw+ySJuc99hNzkMBhuJMfCO2eUTZuoCG38GM8yIfA1yu33Bpn rqSIFYkU7I+aseIHq0Oef67DxhiNW/ZGaupgjO9dzl/sv4rnwh/k19neOC6Zte6HZ3wi aqQ5AVnci6iAk0zjIEyLFOlxFQyvQAS3/pmhSu2Fsl9EsxVfjtMaXnGHeoFfvbdIAK+f idjXW2G42enz7v5oYe6WHZ1PdZUFThGoSmAWEhHg4C5iKZEKwXCT/pXqc4q6TIlRe75P ZBsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773349380; x=1773954180; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CyXZB+dQA04Zj7lNOuu04c62vdAoXoHzZz56WXT1k+4=; b=rRUW4Zkfk8mCWWBrMIzLDXd42trR35tJbdAdYPy/eaI83aAoYGPAINFG63wSsShGc3 lb2uxwEv2cg2U88OvBsCIiXsJhdzjdFl5aPPSQ7aiaXlHSy6oG+5LGjJZ9NLMrDPPvk4 pbVdF+JcgC+yKaXv2SNrflI1ZYaxyGn2EE+C4/5lyFtXsrQfPlLJyMgBMdIPFuoj4OLP jwVIdaYuQZBHwdKc7m8x4+IplrC4uDHD23Q8PCb8cu2+B7y8izbQ81uJc2FVVOcj7cVK fKsDj71h9ZCPS2m2oZzStGQ5Z0dk1y9+QAAoJyhDyLHaQaw9/kcil7SmrT7+FEq6FT1f 1Eow== X-Gm-Message-State: AOJu0Yw9wzzzF0tH3T14PgUqc2YbQrsZbWLzBMlyGh3SZoKJYUZ00WPs /EpnWQXxKgrBjkandIdqe22Bn5bdim9mkWULBL6c5AjLWvMb1B6UkJGHxSmh X-Gm-Gg: ATEYQzzS5v6q2X5Si6Wt7fXd4vgwNJroEyOqfaXUBSbiSK4PnZBmjw3OYWRZrM9uqrg JqntZx2jd8p5Xoa2E30KL+DLvycUyPj0equ+U4Xv+VUPZ0V2uEwSP2DTjzraHKNJt9iJuue79Zo UKivf1l9jEgE8jA2GmyyZT2sBQG96Dbx3aKaFWxWFs2m33V7RfWAR/ud3sg0DMcPZkMPLmZT1mu hHTbdxcy2l3byGPFZBSnX6j0GGvAqVlpVwa4OPpnEnQryNUtDb24chAToA5FRoSRA2FV3sbg9H9 iCFkXoPVDjMJAG6PkXiH/Q/RnuSQWP3m/0E0yOQxKrDvnl9tzQFY0oRvjr2mETLwBFtABz6ehfx q0NQJLxX3VaBl1Gi6kd9UkbF6C8uDGnzelLTl1nUwrjSMj0HVmiZPQY9l/x9lv4us+aBacGInX7 TypD09RWJm70Z20k/N9mhAb0IdUyx4waT+Pv0Y9yDu4dZJvZwHodamjjirN5jV+/yRvu/6B+M3S mC+ X-Received: by 2002:a05:6000:200d:b0:439:bddb:cc77 with SMTP id ffacd0b85a97d-43a04db5c1amr2071691f8f.37.1773349379950; Thu, 12 Mar 2026 14:02:59 -0700 (PDT) Received: from ?IPV6:2a0b:5f04:a8:5c00:c4ef:63d9:dc9c:7b5a? ([2a0b:5f04:a8:5c00:c4ef:63d9:dc9c:7b5a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439fe19ad9asm12185326f8f.7.2026.03.12.14.02.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Mar 2026 14:02:59 -0700 (PDT) Message-ID: Date: Thu, 12 Mar 2026 21:02:59 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: "pgsql-generallists.postgresql.org" Content-Language: en-GB From: Martin Goodson Subject: (PostgreSQL 17) View usage resulting in 'ERROR: unrecognized node type: 2' Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I don't know if anyone has seen this, maybe it's a very common error I've just never come across before, but I'm encountering the following problem: 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' I've tried repeating the load from the pg_dump file, and it still errors immediately with the same error message. I've tried creating a copy of one of the views (extracting the view definition with pg_get_viewdef, and wrapping a create view around it) ... that results in a new view that is created successfully, but which still results in an immediate 'ERROR: unrecognized node type: 2' when you query the view. Unfortunately I cannot provide the view definition due to confidentiality agreements 🙁 Any suggestions to what might be the underlying cause for this? Has this happened anywhere else? Is there some manner of issue with complexity in views in PG17? Any suggestions, or further information, would be very gratefully received 🙂 Thank you. -- -- Martin Goodson. "Have you thought up some clever plan, Doctor?" "Yes, Jamie, I believe I have." "What're you going to do?" "Bung a rock at it." -- -- Martin Goodson. "Have you thought up some clever plan, Doctor?" "Yes, Jamie, I believe I have." "What're you going to do?" "Bung a rock at it."