]> granicus.if.org Git - postgresql/commit
Refactor to create generic WAL page read callback
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 21 Jan 2016 01:18:58 +0000 (17:18 -0800)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 21 Jan 2016 01:18:58 +0000 (17:18 -0800)
commit422a55a68784fd00f4514834f3649140a9166fa5
tree88dcaae1f0359f9eb6ee4a8f1ce3806a196d292c
parent45be99f8cd5d606086e0a458c9c72910ba8a613d
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
src/backend/access/transam/xlogutils.c
src/backend/replication/logical/logicalfuncs.c
src/include/access/xlogutils.h