From: tfo@alumni.brown.edu
To: pgsql-admin@postgresql.org
Subject: Re: pg_restore usage
Date: 28 Jun 2004 12:55:05 -0700
Message-ID: <80c38bb1.0406281155.470ef80b@posting.google.com> (raw)
References: <80c38bb1.0406211357.f9fadd6@posting.google.com>
<11767.1088346148@sss.pgh.pa.us>
So these two statements seem to be somewhat contradictory.
What's the point of -C if not to create the database named in -d?
And why does -C -d template1 work but not -C -d <mypgsql>?
-tfo
tgl@sss.pgh.pa.us (Tom Lane) wrote in message news:<11767.1088346148@sss.pgh.pa.us>...
> Whatever database you name in -d has to already exist, because that's
> where pg_restore will initially connect. -C means to issue a CREATE
> DATABASE command and then reconnect to the new db.
>
> In other words, try "-C -d template1".
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: tfo@alumni.brown.edu
Subject: Re: pg_restore usage
In-Reply-To: <80c38bb1.0406281155.470ef80b@posting.google.com>
References: <80c38bb1.0406211357.f9fadd6@posting.google.com> <11767.1088346148@sss.pgh.pa.us> <80c38bb1.0406281155.470ef80b@posting.google.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