From: Ian Burrell <ib@onsitetech.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore problem with 7.3.1
Date: Wed, 05 Feb 2003 15:15:50 -0800
Message-ID: <3E419B26.1040707@onsitetech.com> (raw)
In-Reply-To: <7462.1044117389@sss.pgh.pa.us>
References: <3E3B18DA.4010601@onsitetech.com>
<7462.1044117389@sss.pgh.pa.us>
Tom Lane wrote:
>
> I tried to replicate this, and could not: the restore went into the
> expected database. (But I did notice that pg_restore needed to be
> explicitly told -Ft, which seems less than bright of it.) Are you
> sure those are the exact commands you issued? Were you using the 7.3
> versions of pg_dump and pg_restore?
>
I just recreated the problem with a slightly different command. The
problem was caused by using a list file to skip loading some function
definitions that were causing problems. The command that loaded
everything into template1 was:
pg_restore -C -d template1 -L mpmx.lst -Ft mpmx.tar
The list file was created without doing a
It looks like the CREATE DATABASE call isn't done unless the -C flag is
included both when the list file is created and when doing the restore.
This works correctly:
pg_restore -C -l -Ft mpmx.tar > mpmx.lst
pg_restore -C -d mpmx -L mpmx.lst -Ft mpmx.tar
It would be good if pg_restore warned if the -C flag was included on the
list file generation or the
- Ian
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ib@onsitetech.com, tgl@sss.pgh.pa.us
Subject: Re: pg_restore problem with 7.3.1
In-Reply-To: <3E419B26.1040707@onsitetech.com>
References: <3E3B18DA.4010601@onsitetech.com> <7462.1044117389@sss.pgh.pa.us> <3E419B26.1040707@onsitetech.com>
* 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