Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLyO7-0000lt-3u for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 17:16:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WLyO6-0006Jf-BA for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 17:16:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLyO5-0006Hp-AX for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 17:16:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLyO1-00069H-Jk for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 17:16:44 +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 s27HGbVQ018132; Fri, 7 Mar 2014 12:16:37 -0500 From: Tom Lane To: Wilfried.Weiss@nsg.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9472: pg_dumpall fails with "unrecognized node type: 650" In-reply-to: <20140307125347.1917.19496@wrigleys.postgresql.org> References: <20140307125347.1917.19496@wrigleys.postgresql.org> Comments: In-reply-to Wilfried.Weiss@nsg.com message dated "Fri, 07 Mar 2014 12:53:47 +0000" Date: Fri, 07 Mar 2014 12:16:37 -0500 Message-ID: <18131.1394212597@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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Wilfried.Weiss@nsg.com writes: > pg_dumpall: query failed: ERROR: unrecognized node type: 650 > pg_dumpall: query was: SELECT datname, coalesce(rolname, (select rolname > from pg_authid where oid=(select datdba from pg_database where > datname='template0'))), pg_encoding_to_char(d.encoding), datcollate, > datctype, datfrozenxid, datistemplate, datacl, datconnlimit, (SELECT spcname > FROM pg_tablespace t WHERE t.oid = d.dattablespace) AS dattablespace FROM > pg_database d LEFT JOIN pg_authid u ON (datdba = u.oid) WHERE datallowconn > ORDER BY 1 That's very bizarre. The implication of the error message is that something examining a query parsetree found a Value node where it wasn't expecting one. Ordinarily I'd think a parser or planner bug, but since this is a standard query in pg_dumpall, it's hard to see how such a bug could have escaped notice. Another possible theory is system-catalog corruption, but I don't see how that would explain this particular symptom. I wonder if you've got a corrupted postgres executable. In any case, since you're running a version that's a year or two obsolete, updating to 9.2.latest would be a good first step. > What can I do to be able to unload the data again? If upgrading doesn't help, I'd try telling pg_dumpall to connect to a different database initially (see -d option). If it is some bizarre species of catalog corruption, it probably is affecting the postgres database only, so this might dodge the issue. Failing that, try pg_dump'ing individual databases. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs