Refactor to create generic WAL page read callback

Simon Riggs <simon@2ndQuadrant.com>

Commit: 422a55a68784fd00f4514834f3649140a9166fa5
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2016-01-21T01:18:58Z
Releases: 9.6.0
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