Add support for a generic wal reading facility dubbed XLogReader
authorAndres Freund <[email protected]>
Thu, 7 Jun 2012 09:40:08 +0000 (11:40 +0200)
committerAndres Freund <[email protected]>
Mon, 18 Jun 2012 11:11:39 +0000 (13:11 +0200)
commit9cf4d2d38897f074b89d325933ecdd0afe61c5f1
tree070a1051bc8a980db45d13a2ffacd201ab13ce9e
parent8fdbd771a080bc22550acfef745e2912a5c6e271
Add support for a generic wal reading facility dubbed XLogReader

Features:
- streaming reading/writing
- filtering
- reassembly of records

Reusing the ReadRecord infrastructure in situations where the code that wants
to do so is not tightly integrated into xlog.c is rather hard and would require
changes to rather integral parts of the recovery code which doesn't seem to be
a good idea.

Missing:
- "compressing" the stream when removing uninteresting records
- writing out correct CRCs
- validating CRCs
- separating reader/writer
src/backend/access/transam/Makefile
src/backend/access/transam/xlogreader.c [new file with mode: 0644]
src/include/access/xlogreader.h [new file with mode: 0644]