Refactor to create generic WAL page read callback
Simon Riggs <simon@2ndQuadrant.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlogutils.c | modified | +166 −0 |
| src/backend/replication/logical/logicalfuncs.c | modified | +3 −155 |
| src/include/access/xlogutils.h | modified | +3 −0 |