pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Burrell <ib@onsitetech.com>
To: pgsql-admin@postgresql.org
Subject: pg_restore problem with 7.3.1
Date: Fri, 31 Jan 2003 16:46:18 -0800
Message-ID: <3E3B18DA.4010601@onsitetech.com> (raw)

I am upgrading my PostgreSQL install from 7.2.3 to 7.3.1.  I ran into a 
problem with pg_restore creating the database.  I am not sure if this is 
a documentation problem or a real bug.  I have one database with BLOBs 
and used tar format backup: "pg_dump -Ft -b mpmx > backup.tar".

I saw the -C option for pg_restore to create the database.  The man page 
also says that with the -C option, the -d option specifies the database 
create the database from

pg_restore -C -d template1 backup.tar

Instead of creating the mpmx database, the command loaded everything 
into the template1 database.

Is the man page correct about the operation of the -C option?  Should I 
have run things differently?  I noticed that without the -d option, 
pg_restore spits out a script to restore the database.  Should I create 
the database manually and restore it by piping pg_restore into psql?
How can I return template1 to its initial state?

  - Ian




view thread (7+ messages)  latest in thread

Message-ID: <3E3B18DA.4010601@onsitetech.com>
Permalink:  ../3E3B18DA.4010601@onsitetech.com/
Also on:    postgresql.org/message-id/3E3B18DA.4010601@onsitetech.com

 · 

reply

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
  Subject: Re: pg_restore problem with 7.3.1
  In-Reply-To: <3E3B18DA.4010601@onsitetech.com>
  References: <3E3B18DA.4010601@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