Re: Remove page-read callback from XLogReaderState. - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Remove page-read callback from XLogReaderState.
Date
Msg-id CAMsr+YH1nFSDrWPtaBi_K+RiM0j_xOr5r3Vhqbg+WZ+w55dK+A@mail.gmail.com
Whole thread Raw
In response to Re: Remove page-read callback from XLogReaderState.  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Responses Re: Remove page-read callback from XLogReaderState.
List pgsql-hackers


On Tue, 26 May 2020, 15:40 Kyotaro Horiguchi, <horikyota.ntt@gmail.com> wrote:

This patch removes all the three callbacks (open/close/page_read) in
XL_ROUTINE from XLogReaderState.  It only has "cleanup" callback
instead.

I actually have a use in mind for these callbacks - to support reading WAL for logical decoding from a restore_command like tool. So we can archive wal when it's no longer required for recovery and reduce the risk of filling pg_wal if a standby lags.

I don't object to your cleanup at all. I'd like it to  be properly pluggable, whereas right now it has hard coded callbacks that differ for little reason.

Just noting that the idea of a callback here isn't a bad thing. 

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Add A Glossary
Next
From: Craig Ringer
Date:
Subject: Re: Two fsync related performance issues?