Re: pg_dumpall restore fails - Mailing list pgsql-bugs

From Tom Lane
Subject Re: pg_dumpall restore fails
Date
Msg-id 26141.1227739982@sss.pgh.pa.us
Whole thread Raw
In response to pg_dumpall restore fails  ("Shaun Crampton" <shaun@cantab.net>)
Responses Re: pg_dumpall restore fails  ("Shaun Crampton" <shaun@cantab.net>)
List pgsql-bugs
"Shaun Crampton" <shaun@cantab.net> writes:
> I tried to dump the 7.4.13 database using pg_dumpall from 8.3.1 and restore
> into 8.3.5 on my local test machine.  I get the following errors at restore
> time:

> ERROR:  missing FROM-clause entry for table "icc_countries"
> LINE 2: ...de, icc_members.county, icc_states.name AS state, icc_countr...
>                                                              ^

Per the 8.1 release notes:

      It might be necessary to set add_missing_from to true
      in order to load an existing dump file, if the dump contains any
      views or rules created using the implicit-FROM syntax.
      This should be a one-time annoyance, because
      PostgreSQL 8.1 will convert
      such views and rules to standard explicit-FROM syntax.
      Subsequent dumps will therefore not have the problem.

Going from 7.4 to 8.3 in one jump is a bit ambitious; you should expect
to learn about a few compatibility issues the hard way.  Start by
reading the release notes for each version in between, *particularly*
the compatibility warnings.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Rod Taylor"
Date:
Subject: Re: BUG #4533: Plpgsql complex type failure
Next
From: raf
Date:
Subject: Re: Bug in RETURN QUERY