pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: missive@frontiernet.net
To: pgsql-admin@postgresql.org
Subject: Re: pg_restore blues
Date: Wed, 17 Oct 2001 00:40:57 +0000 (UTC)
Message-ID: <9qik2p$2rkk$1@news.tht.net> (raw)
References: <3BCC717B.2020500@cybaea.com>

On Tue, 16 Oct 2001 18:42:19 +0100, Allan Engelhardt <allane@cybaea.com> wrote:
> OK, I'm probably doing something very stupid, but can somebody explain how I'm supposed to restore a custom archive dump?
> 
> $ createdb foo
> CREATE DATABASE
> $ psql foo
> foo=# create table users (id serial);
> NOTICE:  CREATE TABLE will create implicit sequence 'users_id_seq' for SERIAL column 'users.id'
> NOTICE:  CREATE TABLE/UNIQUE will create implicit index 'users_id_key' for table 'users'
> CREATE
> foo=# \q
> $ pg_dump --blobs --clean --create --file=/tmp/foo.dump --format=c --compress=9 foo
> $ dropdb foo
> DROP DATABASE
> $ pg_restore --create -d test /tmp/foo.dump


I never use pg_restore... Actually did not know it was there.

I always use psql:

psql
create database restordbname;
\c restordbname
\i foo.dump
\q

Of course I also do not use blobs....





view thread (3+ messages)  latest in thread

Message-ID: <9qik2p$2rkk$1@news.tht.net>
Permalink:  ../9qik2p$2rkk$1@news.tht.net/
Also on:    postgresql.org/message-id/9qik2p$2rkk$1@news.tht.net

 · 

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: missive@frontiernet.net
  Subject: Re: pg_restore blues
  In-Reply-To: <9qik2p$2rkk$1@news.tht.net>
  References: <3BCC717B.2020500@cybaea.com> <9qik2p$2rkk$1@news.tht.net>

* 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