Rép. : Online backup

From: "Erwan DUROSELLE" <EDuroselle(at)seafrance(dot)fr>
To: <baptista(at)linuxsolutions(dot)com(dot)br>, <pgsql-general(at)postgresql(dot)org>
Subject: Rép. : Online backup
Date: 2002-10-23 08:05:20
Message-ID: 31fac85e206fab5b135fb6db729d8a853db65acf@
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The admin guide is really explicit about this (§9 for my 7.2 doc):
"Dumps created by pg_dump are internally consistent, that is updates to the database while pg_dump is running will not be in the dump. Pg_dump does not block other operations on the database while it is working. ( Exceptions are those operations that need to operate with an exclusive lock, such as vacuum full)."

So Yes, the data will be consistent. It will only contain data that was commited at the time you start pg_dump.

Do not cp $PGDATA (or tar or whatever file-system-level backup) while the database is running. The backup would be unusable.

Erwan

>>> Paulo Henrique Baptista de Oliveira <baptista(at)linuxsolutions(dot)com(dot)br> 23/10/2002 04:55 >>>
Hi all,
I want to do an online backup.
All that I see in lists are about cp $PGDATA and pg_dump.
What about tables that are being updated at the same time the backup is
running? The data will be consistent?
Thanks, Paulo Henrique

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

Browse pgsql-general by date

  From Date Subject
Next Message Tommi Maekitalo 2002-10-23 08:20:24 Re: : Errors when compiling with Postgres 7.2.3 Libraries on RedHat 8
Previous Message peter 2002-10-23 07:50:04 Multiple Databases