pgsql: Refactor to create generic WAL page read callback - Mailing list pgsql-committers

From Simon Riggs
Subject pgsql: Refactor to create generic WAL page read callback
Date
Msg-id E1aM3vE-0008I2-No@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/422a55a68784fd00f4514834f3649140a9166fa5

Modified Files
--------------
src/backend/access/transam/xlogutils.c         |  166 ++++++++++++++++++++++++
src/backend/replication/logical/logicalfuncs.c |  158 +---------------------
src/include/access/xlogutils.h                 |    3 +
3 files changed, 172 insertions(+), 155 deletions(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pgsql: Support parallel joins, and make related improvements.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: psql: Add tab completion for COPY with query