pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ian Burrell <ib@onsitetech.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore problem with 7.3.1
Date: Sat, 01 Feb 2003 11:36:29 -0500
Message-ID: <7462.1044117389@sss.pgh.pa.us> (raw)
In-Reply-To: <3E3B18DA.4010601@onsitetech.com>
References: <3E3B18DA.4010601@onsitetech.com>

Ian Burrell <ib@onsitetech.com> writes:
> ...and used tar format backup: "pg_dump -Ft -b mpmx > backup.tar".
> pg_restore -C -d template1 backup.tar
> Instead of creating the mpmx database, the command loaded everything 
> into the template1 database.

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?

> How can I return template1 to its initial state?

Drop and recreate it --- see recipe for this procedure on techdocs.
Or you could just re-initdb.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <7462.1044117389@sss.pgh.pa.us>
Permalink:  ../7462.1044117389@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7462.1044117389@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, ib@onsitetech.com
  Subject: Re: pg_restore problem with 7.3.1
  In-Reply-To: <7462.1044117389@sss.pgh.pa.us>
  References: <3E3B18DA.4010601@onsitetech.com> <7462.1044117389@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