Archived redo logs / Managed recovery mode? - Mailing list pgsql-hackers

From Matthew Kirkwood
Subject Archived redo logs / Managed recovery mode?
Date
Msg-id Pine.LNX.4.33.0104271433390.24521-200000@sphinx.mythic-beasts.com
Whole thread Raw
List pgsql-hackers
Hi,

Firstly, the attached patch implements archiving of off-
line redo logs, via the wal_archive_dir GUC option.  It
builds and appears to work (though it looks like guc-file.l
has some problems with unquoted strings containing slashes).


TODO: handle EXDEV from link/rename, and copy rather
than renaming.


Clearly this isn't a lot of use at the moment, but what I'd
really like would be a way to implement what our (Oracle)
DBA calls "managed recovery".

Essentially, the standby database is opened in read-only
mode (since PG seems to lack this, having it not open at
all should suffice :). and archived redo logs are copied
over from the live database (we do it via rsync, every 5
minutes) and rolled forward.

(Note: for what it's worth, we're using this because
Oracle's Advanced Replication is too unstable.)


Is there an easy way to do this?  I suppose that while
there isn't a readonly option, it might be best done with
an external tool, not unlike resetxlog.

What are the plans for replication in 7.2 (assuming that
is what's next)?  The rserv stuff looks neat, but rather
intricate.  A cheap, out-of-band replication system would
make me very happy.

Matthew.

pgsql-hackers by date:

Previous
From: Mike Mascari
Date:
Subject: RE: Any optimizations to the join code in 7.1?
Next
From: The Hermit Hacker
Date:
Subject: The new, the improved ... FTS Searching of Mailing List Archives