Re: Re: Backups WAS: 2 gig file size limit - Mailing list pgsql-general

From Tom Lane
Subject Re: Re: Backups WAS: 2 gig file size limit
Date
Msg-id 27750.994730861@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: Backups WAS: 2 gig file size limit  (Joseph Shraibman <jks@selectacast.net>)
List pgsql-general
Joseph Shraibman <jks@selectacast.net> writes:
> Could a command be added that locks all the files, quickly tars them
> up, then releases the lock?

pg_ctl stop
tar cfz - $PGDATA >someplace
pg_ctl start

There is no possibility of anything less drastic, if you want to ensure
that the database files are consistent and not changing.  Don't even
think about doing a partial dump of the $PGDATA tree, either.  If you
don't have a pg_log that matches your data files, you've got nothing.

            regards, tom lane

pgsql-general by date:

Previous
From: Mike Castle
Date:
Subject: Re: Re: Backups WAS: 2 gig file size limit
Next
From: Thomas Lockhart
Date:
Subject: Re: Re: Backups WAS: 2 gig file size limit