Alfred Perlstein <bright(at)wintelcom(dot)net> writes in pgsql-hackers(at)postgresql(dot)org:
> while doing a pg_dump of a table after postgresql made a mess of itself:
> dumpRules(): SELECT failed for table website. Explanation from
> backend: 'ERROR: cache lookup of attribute 1 in relation 9892634
> failed '.
I just got a message like that earlier this afternoon. My problem was
that I had created a view and later dropped and recreated one of the
tables the view referenced. Dropping and recreating the view fixed
things.