Re: pg_restore problem with 7.3.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ian Burrell <ib(at)onsitetech(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_restore problem with 7.3.1
Date: 2003-02-01 16:36:29
Message-ID: 7462.1044117389@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ian Burrell <ib(at)onsitetech(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tim Frank 2003-02-01 17:18:14 Re: PAM authentication
Previous Message Jeff Ross 2003-02-01 15:26:12 Re: pg_restore problem with 7.3.1