Re: pg_restore has problems with restoring sequences. - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_restore has problems with restoring sequences.
Date
Msg-id 15766.1517758986@sss.pgh.pa.us
Whole thread Raw
In response to pg_restore has problems with restoring sequences.  (robert <robert@redcor.ch>)
Responses Re: pg_restore has problems with restoring sequences.  (robert <robert@redcor.ch>)
Re: pg_restore has problems with restoring sequences.  ("robert@redo2oo.ch" <robert@redo2oo.ch>)
List pgsql-admin
robert <robert@redcor.ch> writes:
> I use
>      pg_dump -h localhost  -U USER -Fc DATABASE > dumpfile

OK ...

> then I restore it with:
>      dropdb DATABASE
>      pg_restore -O  -U user  -d DATABASE  dumpfile

That sequence is missing a createdb step (or else -C in the restore
switches).

> doing this then I get these warnings, and many (not all) sequences are not created.

Usually the thing to do is look at the very first error; everything after
that may just be cascading damage.  I kinda doubt what you showed us
here is the first error.

            regards, tom lane


pgsql-admin by date:

Previous
From: robert
Date:
Subject: pg_restore has problems with restoring sequences.
Next
From: "robert@redo2oo.ch"
Date:
Subject: Re: pg_restore has problems with restoring sequences.