Re: backup - Mailing list pgsql-novice

From Anthony E . Greene
Subject Re: backup
Date
Msg-id 20010108181240.C19618@cp5340
Whole thread Raw
In response to Re: backup  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
On Mon, 08 Jan 2001 10:38:13 Tom Lane wrote:
>Copying the entire $PGDATA directory (not only the base/ subdirectory)
>is sufficient, if and only if the database is completely idle while you
>do it --- I'd recommend stopping the postmaster to be sure.  Otherwise
>you will get inconsistent files.  In particular, you WILL have problems
>if $PGDATA/pg_log is out of sync with any table data file.

You will also need to insure that the version of PostgreSQL used in the
recovery process is that same as that used before the failure. The binary
files are not completely portable across versions.

--
Anthony E. Greene <agreene@pobox.com> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Chat:  AOL/Yahoo: TonyG05    ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>

pgsql-novice by date:

Previous
From: Ken Corey
Date:
Subject: Advice on stored proc error handling versus Sybase?
Next
From: Tom Lane
Date:
Subject: Re: Advice on stored proc error handling versus Sybase?