10 karma · joined Sep 26, 2016 (10y ago) · 3 submissions
comment 10y ago · link · parent
However there might be a lot of WAL to apply, as data gets added then deleted or changed.
A differential backup (see Note) solves this somewhat for large databases by just backing up the blocks changed since the last full backup.
So you might do a full backup once a week, and differentials nightly in between and also save the WAL. This means you are not backing up many TBs every night.
To recover, you would restore the full backup, plus the last differential backup plus any WAL since the last differential. This reduces the volume of WAL to be applied in a recovery.
Note :
Differential backups would include all the changes since the last FULL backup.
Incremental backups would include changes since the last backup, whether a full or the last incremental.
comment 10y ago · link · parent
However, a middle ground of being able to backup just the changes in a multi-terabyte database that have been made since the last full backup, wouldn't be controversial and is a common use case.
I've read of a few attempts on the PG dev mailing list over the last couple of years, so hopefully one of them will be completed sometime soon and merged into core.
Some of the work I have come across :
comment 10y ago · link · parent
> Is anybody aware somebody working on that for PG?
Not that I am aware of.
Postgres is a fantastic database, and with zero licensing headaches, but when people ask why companies are still paying for commercial DBMS engines, some features that they have which Postgres does not have, and which I often miss are :
1)"temporal" / versioned tables / time consistent views of data . Oracle has a lot of "flashback" related options at the DB and table levels which can be really useful.
2) Easy, built-in partitioning for large datasets. (This is being worked on and will probably start to be released in Postgres 10).
3) Better backup options for large databases, such as incremental/differential backups.
In the Yandex migration from Oracle to Postgres I recall that this, ie incremental backups, is one of the things they mentioned it would be great to have.
4) Along with backups, the built-in recovery options in Postgres are fairly basic compared to what you can do regarding single table recovery, corruption repair etc that other DBs have.