How backup huge pgsql ?

Peter Schuller peter.schuller at infidyne.com
Sat Jan 12 11:48:37 PST 2008


> I want to known how can I make backup of huge postgresql database (huge
> mean ~ 2To).
>
> I can stop the access of the database during N>>1 hours.
>
> Any idea about this ?

pg_dump should work as usual. No need to stop database access since read-only 
access won't block anything else and it won't be blocked by other processes.

That said, pg_dump:ing a database that is 2 terrabytes in size is going to 
take some significant time. If you want to maintain frequent backups you may 
want to look into using point in time recovery and WAL archiving. See:

http://www.postgresql.org/docs/8.2/static/continuous-archiving.html

Also the very long transaction used for the backup will prevent vacuuming from 
freeing tuples for the duration of the backup. If you have tables that rely 
on very frequent vacuuming for performance, those may be affected.

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey at scode.org
E-Mail: peter.schuller at infidyne.com Web: http://www.scode.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080112/ad3f27df/attachment.pgp


More information about the freebsd-questions mailing list