pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Backup / restore procedure documentation
3+ messages / 2 participants
[nested] [flat]

* Backup / restore procedure documentation
@ 2003-07-24 13:25 Havard Eidnes <he@uninett.no>
  2003-08-01 01:25 ` Re: Backup / restore procedure documentation Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Havard Eidnes @ 2003-07-24 13:25 UTC (permalink / raw)
  To: pgsql-docs

Hi,

I'm a postresql novice but otherwise a Unix system administrator.  I
recently upgraded one of my postgresql installations from 7.2.2 to
7.3.3, and saved the pg_dumpall output for reload after the upgrade.

However, I find that the documentation of the restore procedure as
found in sections 9.1.1 and 9.1.2 in and of itself to be inadequate.
The procedure in 9.1.2 says "can be restored with psql as described
above", referring to section 9.1.1, which says:

 psql dbname < infile                                                           

The text in 9.1.2 fails to mention where "dbname" is to be taken from
in this context.

The exact procedure one need to follow is however documented in
section 1.4, where it is specified that you need to use the
"template1" database when restoring a full database dump, like so:
                                                                                
 /usr/local/pgsql/bin/psql -d template1 -f outputfile                           

Attempts at doing

  psql < outputfile

(which I incorrectly assumed would do the right thing) with a
newly-initialized database system just stonewalled me with

psql: FATAL:  Database "pgsql" does not exist in the system catalog.

I think the documentation in section 9.1.2 should be improved to
better reflect the required procedure as described in section 1.4,
and/or a cross reference should be given, so that this information
can be more easily found.

Regards,

- Håvard



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

* Re: Backup / restore procedure documentation
  2003-07-24 13:25 Backup / restore procedure documentation Havard Eidnes <he@uninett.no>
@ 2003-08-01 01:25 ` Tom Lane <tgl@sss.pgh.pa.us>
  2003-08-01 08:08   ` Re: Backup / restore procedure documentation Havard Eidnes <he@uninett.no>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2003-08-01 01:25 UTC (permalink / raw)
  To: Havard Eidnes <he@uninett.no>; +Cc: pgsql-docs

Havard Eidnes <he@uninett.no> writes:
> However, I find that the documentation of the restore procedure as
> found in sections 9.1.1 and 9.1.2 in and of itself to be inadequate.

Fair enough.  I've tried to address this --- see CVS-tip docs at
http://developer.postgresql.org/docs/postgres/backup.html

			regards, tom lane



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

* Re: Backup / restore procedure documentation
  2003-07-24 13:25 Backup / restore procedure documentation Havard Eidnes <he@uninett.no>
  2003-08-01 01:25 ` Re: Backup / restore procedure documentation Tom Lane <tgl@sss.pgh.pa.us>
@ 2003-08-01 08:08   ` Havard Eidnes <he@uninett.no>
  0 siblings, 0 replies; 3+ messages in thread

From: Havard Eidnes @ 2003-08-01 08:08 UTC (permalink / raw)
  To: tgl@sss.pgh.pa.us; +Cc: pgsql-docs

> Havard Eidnes <he@uninett.no> writes:
> > However, I find that the documentation of the restore procedure as
> > found in sections 9.1.1 and 9.1.2 in and of itself to be inadequate.
>
> Fair enough.  I've tried to address this --- see CVS-tip docs at
> http://developer.postgresql.org/docs/postgres/backup.html

Thanks, this adresses my concern exactly.

Best regaqrds,

- Håvard



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


end of thread, other threads:[~2003-08-01 08:08 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-24 13:25 Backup / restore procedure documentation Havard Eidnes <he@uninett.no>
2003-08-01 01:25 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-08-01 08:08   ` Havard Eidnes <he@uninett.no>

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