]> granicus.if.org Git - postgresql/commit
Split out XLog reading as an independent facility
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 16 Jan 2013 19:12:53 +0000 (16:12 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 16 Jan 2013 19:12:53 +0000 (16:12 -0300)
commit7fcbf6a405ffc12a4546a25b98592ee6733783fc
tree05a3411214bfb974d6dd5be880932c07295e955e
parent8606dd81905a004eda74f0bfa0a9c9c18a488725
Split out XLog reading as an independent facility

This new facility can not only be used by xlog.c to carry out crash
recovery, but also by external programs.  By supplying a function to
read XLog pages from somewhere, all the WAL reading can be used for
completely different purposes.

For the standard backend use, the behavior should be pretty much the
same as previously.  As for non-backend programs, an hypothetical
pg_xlogdump program is now closer to reality, but some more backend
support is still necessary.

This patch was originally submitted by Andres Freund in a different
form, but Heikki Linnakangas opted for and authored another design of
the concept.  Andres has advanced the patch since Heikki's initial
version.  Review and some (mostly cosmetics) changes by me.
src/backend/access/transam/Makefile
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogreader.c [new file with mode: 0644]
src/backend/nls.mk
src/include/access/xlogreader.h [new file with mode: 0644]