aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/xlogutils.h
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2016-01-20 17:18:58 -0800
committerSimon Riggs <simon@2ndQuadrant.com>2016-01-20 17:18:58 -0800
commit422a55a68784fd00f4514834f3649140a9166fa5 (patch)
tree88dcaae1f0359f9eb6ee4a8f1ce3806a196d292c /src/include/access/xlogutils.h
parent45be99f8cd5d606086e0a458c9c72910ba8a613d (diff)
downloadpostgresql-422a55a68784fd00f4514834f3649140a9166fa5.tar.gz
postgresql-422a55a68784fd00f4514834f3649140a9166fa5.zip
Refactor to create generic WAL page read callback
Previously we didn’t have a generic WAL page read callback function, surprisingly. Logical decoding has logical_read_local_xlog_page(), which was actually generic, so move that to xlogfunc.c and rename to read_local_xlog_page(). Maintain logical_read_local_xlog_page() so existing callers still work. As requested by Michael Paquier, Alvaro Herrera and Andres Freund
Diffstat (limited to 'src/include/access/xlogutils.h')
-rw-r--r--src/include/access/xlogutils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h
index a1c0c82c347..1b9abce9ad3 100644
--- a/src/include/access/xlogutils.h
+++ b/src/include/access/xlogutils.h
@@ -47,4 +47,7 @@ extern Buffer XLogReadBufferExtended(RelFileNode rnode, ForkNumber forknum,
extern Relation CreateFakeRelcacheEntry(RelFileNode rnode);
extern void FreeFakeRelcacheEntry(Relation fakerel);
+extern int read_local_xlog_page(XLogReaderState *state, XLogRecPtr targetPagePtr,
+ int reqLen, XLogRecPtr targetRecPtr, char *cur_page, TimeLineID *pageTLI);
+
#endif