Re: pg_restore has problems with restoring sequences.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: robert <robert(at)redcor(dot)ch>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_restore has problems with restoring sequences.
Date: 2018-02-04 15:43:06
Message-ID: 15766.1517758986@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

robert <robert(at)redcor(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message robert@redo2oo.ch 2018-02-04 16:49:21 Re: pg_restore has problems with restoring sequences.
Previous Message robert 2018-02-04 15:10:27 pg_restore has problems with restoring sequences.