pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wilfried.Weiss@nsg.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9472: pg_dumpall fails with "unrecognized node type: 650"
Date: Fri, 07 Mar 2014 12:16:37 -0500
Message-ID: <18131.1394212597@sss.pgh.pa.us> (raw)
In-Reply-To: <20140307125347.1917.19496@wrigleys.postgresql.org>
References: <20140307125347.1917.19496@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (4+ messages)  latest in thread

Message-ID: <18131.1394212597@sss.pgh.pa.us>
Permalink:  ../18131.1394212597@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18131.1394212597@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Wilfried.Weiss@nsg.com
  Subject: Re: BUG #9472: pg_dumpall fails with "unrecognized node type: 650"
  In-Reply-To: <18131.1394212597@sss.pgh.pa.us>
  References: <20140307125347.1917.19496@wrigleys.postgresql.org> <18131.1394212597@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox