[ 8 ]
Chapter 9: Handling Backup and Recovery
What is the difference between a logical and a binary backup?
A logical backup is done using pg_dump is simply a long-running repeatable read
transaction reading all the data in a consistent way. This snapshot can then be
stored in a file. The output is simply an SQL script that can be replayed anywhere
easily.
A binary backup is platform-dependent and is usually used for backups and
replication. It is as large as the original database. In a logical backup and index is
simply a CREATE INDEX instruction. In the case of a binary backup, it is a full
copy.
Do'stlaringiz bilan baham: |