From: Tom Lane <tgl@sss.pgh.pa.us>
To: robert <robert@redcor.ch>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore has problems with restoring sequences.
Date: Sun, 04 Feb 2018 10:43:06 -0500
Message-ID: <15766.1517758986@sss.pgh.pa.us> (raw)
In-Reply-To: <129cd073-60bf-96db-e129-24bd9a37319e@redcor.ch>
References: <129cd073-60bf-96db-e129-24bd9a37319e@redcor.ch>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, robert@redcor.ch
Subject: Re: pg_restore has problems with restoring sequences.
In-Reply-To: <15766.1517758986@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox