pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6751: usage flaws in pg_restore
3+ messages / 3 participants
[nested] [flat]

* BUG #6751: usage flaws in pg_restore
@ 2012-07-24 12:45  pilum.70@uni-muenster.de
  0 siblings, 2 replies; 3+ messages in thread

From: pilum.70@uni-muenster.de @ 2012-07-24 12:45 UTC (permalink / raw)
  To: pgsql-bugs

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #6751: usage flaws in pg_restore
@ 2012-07-31 02:15  Craig Ringer <ringerc@ringerc.id.au>
  parent: pilum.70@uni-muenster.de
  1 sibling, 0 replies; 3+ messages in thread

From: Craig Ringer @ 2012-07-31 02:15 UTC (permalink / raw)
  To: pilum.70@uni-muenster.de; +Cc: pgsql-bugs

On 07/24/2012 08:45 PM, pilum.70@uni-muenster.de wrote:
> 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
Yeah. pg_restore really needs some usability love.  I posted a big rant 
about it a while ago. It's all about finding the time to actually do 
something about it.

--
Craig Ringer



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #6751: usage flaws in pg_restore
@ 2012-07-31 10:35  Marti Raudsepp <marti@juffo.org>
  parent: pilum.70@uni-muenster.de
  1 sibling, 0 replies; 3+ messages in thread

From: Marti Raudsepp @ 2012-07-31 10:35 UTC (permalink / raw)
  To: pilum.70@uni-muenster.de; +Cc: pgsql-bugs

On Tue, Jul 24, 2012 at 3:45 PM,  <pilum.70@uni-muenster.de> wrote:
> 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).

> Given Answer:
>  pg_restore: [archiver] input file does not appear to be a valid archive

This has already been fixed. PostgreSQL 9.2beta says:
pg_restore: [archiver] input file appears to be a text format dump.
Please use psql.

Regards,
Marti



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2012-07-31 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-07-24 12:45 BUG #6751: usage flaws in pg_restore pilum.70@uni-muenster.de
2012-07-31 02:15 ` Craig Ringer <ringerc@ringerc.id.au>
2012-07-31 10:35 ` Marti Raudsepp <marti@juffo.org>

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