Move description of libpqwalreceiver hooks out of the replication's README
authorMichael Paquier <michael@paquier.xyz>
Thu, 2 Jul 2020 04:57:03 +0000 (13:57 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 2 Jul 2020 04:57:03 +0000 (13:57 +0900)
commit641dd167a3424f97eed8416b5ef1c21dbbf8cf12
tree337592fa1a5d71dea10b5b9b60e4c07ac09b0cdf
parent4315e8c23b9a897e12fcf91de7bfd734621096bf
Move description of libpqwalreceiver hooks out of the replication's README

src/backend/replication/README includes since 32bc08b a basic
description of the WAL receiver hooks available in walreceiver.h for a
module like libpqwalreceiver, but the README has never been updated to
reflect changes done to the hooks, so the contents of the README have
rotten with the time.  This commit moves the description from the README
to walreceiver.h, where it will be hard to miss that a description
update or addition is needed depending on the modifications done to the
hooks.

Each hook now includes a description of what it does in walreceiver.h,
and the replication's README mentions walreceiver.h.

Thanks also to Amit Kapila for the discussion.

Author: Michael Paquier
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/20200502024606.GA471944@paquier.xyz
src/backend/replication/README
src/include/replication/walreceiver.h