pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pilum.70@uni-muenster.de
To: pgsql-bugs@postgresql.org
Subject: BUG #6751: usage flaws in pg_restore
Date: Tue, 24 Jul 2012 12:45:56 +0000
Message-ID: <E1SteUu-0002ER-Nm@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6751
Logged by:          Arne Scheffer
Email address:      pilum.70@uni-muenster.de
PostgreSQL version: 9.1.4
Operating system:   Unix (RHEL 6)
Description:        

We've been using PostgreSQL for years now.
It's great.
Only the usage of pg_restore is annoying
(Version 8.3 to 9.1 tested).

Please fix the following issues:
a.)
pg_dump -f sdfsdf.dump sdfsdf
pg_restore -d sdfsdf sdfsdf.dump
Given Answer:
 pg_restore: [archiver] input file does not appear to be a valid archive

(The User ist shocked. Dump possibly corrupted may be considered.)

Better:
 pg_restore: no archive, plain SQL-File detected, use psql -f instead (or \i
from console)

b.)
pg_restore --create -d sdfsdf sdfsdf.dump  (Dump also correctly using sdfsdf
as name in the SQL commands as documented)

Given answer: Database 'sdfsdf' does not exist.

(The User is confused, because therefore --create was used.)

Better: Simply make the intended happen.
Workaround: Tell the user in the answer how to use template0 as intended.

Many newcomers to PostgreSQL will appreciate that fix (and we could shorten
our introductions ;-)).

At least these issues should be mentioned in the documentation.

Thank you in advance

Arne Scheffer

Abteilung 3
ZIV
Muenster University





view thread (3+ messages)  latest in thread

Message-ID: <E1SteUu-0002ER-Nm@wrigleys.postgresql.org>
Permalink:  ../E1SteUu-0002ER-Nm@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1SteUu-0002ER-Nm@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: pilum.70@uni-muenster.de
  Subject: Re: BUG #6751: usage flaws in pg_restore
  In-Reply-To: <E1SteUu-0002ER-Nm@wrigleys.postgresql.org>
  References: <E1SteUu-0002ER-Nm@wrigleys.postgresql.org>

* 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