Insuring consistant backups
Insuring consistant backups
От:
spinler@kmtel.com
Дата:
Hi: A question regarding backups. Commercial databases I've administered have had some facility to freeze or redirect transactions when a backup is being taken from a database which is online, in order to insure that the backup snapshots a consistant database. Does postgresql have a similar facility, or do I have to script some solution, perhaps forcing all sessions to be dropped before doing a pg_dump ? Thanks, -- Pat ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/
Re: Insuring consistant backups
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
pg_dump does a snapshot at backup start, so your backups will be consistent even if there is activity. --------------------------------------------------------------------------- spinler@kmtel.com wrote: > > > Hi: > > A question regarding backups. Commercial databases I've administered have had > some facility to freeze or redirect transactions when a backup is being taken > from a database which is online, in order to insure that the backup snapshots a > consistant database. > > Does postgresql have a similar facility, or do I have to script some solution, > perhaps forcing all sessions to be dropped before doing a pg_dump ? > > Thanks, > -- Pat > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Re: Insuring consistant backups
От:
"Dan Langille" <dan@langille.org>
Дата:
On 9 Dec 2002 at 21:33, spinler@kmtel.com wrote: > Does postgresql have a similar facility, or do I have to script some > solution, perhaps forcing all sessions to be dropped before doing a > pg_dump ? From man pg_dump and http://www.postgresql.org/idocs/index.php?app- pgdump.html: pg_dump makes consistent backups even if the database is being used concurrently. -- Dan Langille : http://www.langille.org/