Re: BUG #2326: Problems Upgrading from 8.0.2 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #2326: Problems Upgrading from 8.0.2
Date
Msg-id 25376.1142573785@sss.pgh.pa.us
Whole thread Raw
In response to BUG #2326: Problems Upgrading from 8.0.2  ("Dan B." <thedanburke@hotmail.com>)
List pgsql-bugs
"Dan B." <thedanburke@hotmail.com> writes:
> I'm trying to restore a database dumpall from postgres 8.0.2 to an 8.1.3
> installation on the same machine but have encountered an error which has
> resulted in some views not being recreated.
> ...
> " psql:backuptoday.bak:5182: ERROR:  missing FROM-clause entry for table
> "language" "

You can reload that view by turning on add_missing_from first.
Re-dumping it will show it in the correct format with an additional
FROM entry.

Note: it seems highly likely to me that that view doesn't do what it's
supposed to anyway, and that you ought to change it.  What you've got
there is a partially constrained 3-way join using two scans of the
language table ... is that what you meant?  But if you want to reload it
with the same behavior it has now, add_missing_from is your friend.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #2327: Startup script for FC4 with selinux
Next
From: tomas@tuxteam.de (Tomas Zerolo)
Date:
Subject: Re: BUG #2317: Wrong sorting order for (VW)