From: | Martin Langhoff <martin(at)catalyst(dot)net(dot)nz> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | PITR - filter by database? |
Date: | 2008-01-02 21:27:50 |
Message-ID: | 477C01D6.3050307@catalyst.net.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Is it possible to segregate the PITR data by database at any stage? We are
- taking regular (daily) snapshots straight from the disk
- storing WALs
- restoring the snapshot
- replaying the WALs
My guess is that at snapshot time, I could use oid2name to focus on the
database I'm interested in plus core Pg data structures, but then the
WAL replay later will fail for transactions that affect other DBs. Is
there a better way?
Background: The goal here is to have a "web application rewind"
facility, based on PITR, that allows a webapp administrator to say
"please rewind my Moodle/Drupal/Whatever" to arbitrary point in time X,
where X is in the last Y days, via a web UI. It is normally configured
to rewind not the master, but a secondary install of your web app --
although there's some interest in rewinding the master too for training
and software testing purposes.
Making good progress so far. It is using git as the storage mechanism
for Pg data and uploaded files, which results in very tight disk footprint.
But it does require a single Pg instance for each web app 'master', plus
a temporary Pg instance for the rewound install. On shared HW there's a
big downside in memory footprint and disk IO to running many Pg instances.
cheers,
martin
--
-----------------------------------------------------------------------
Martin @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
NZ: +64(4)916-7224 MOB: +64(21)364-017 UK: 0845 868 5733 ext 7224
Make things as simple as possible, but no simpler - Einstein
-----------------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2008-01-02 23:29:39 | Re: Argentinian timezone change at the last moment. How to change pgsql tz db? |
Previous Message | Joe | 2008-01-02 20:49:24 | Re: Argentinian timezone change at the last moment. How to change pgsql tz db? |