mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Revert recovery prefetching feature.
This set of commits has some bugs with known fixes, but at this late stage in the release cycle it seems best to revert and resubmit next time, along with some new automated test coverage for this whole area. Commits reverted:dc88460c: Doc: Review for "Optionally prefetch referenced data in recovery."1d257577: Optionally prefetch referenced data in recovery.f003d9f8: Add circular WAL decoding buffer.323cbe7c: Remove read_page callback from XLogReader. Remove the new GUC group WAL_RECOVERY recently added bya55a9847, as the corresponding section of config.sgml is now reverted. Discussion: https://postgr.es/m/CAOuzzgrn7iKnFRsB4MHp3UisEQAGgZMbk_ViTN4HV4-Ksq8zCg%40mail.gmail.com
This commit is contained in:
@@ -29,8 +29,6 @@ typedef void (*LogicalOutputPluginWriterUpdateProgress) (struct LogicalDecodingC
|
||||
TransactionId xid
|
||||
);
|
||||
|
||||
typedef bool (*LogicalDecodingXLogPageReadCB)(XLogReaderState *ctx);
|
||||
|
||||
typedef struct LogicalDecodingContext
|
||||
{
|
||||
/* memory context this is all allocated in */
|
||||
@@ -41,7 +39,6 @@ typedef struct LogicalDecodingContext
|
||||
|
||||
/* infrastructure pieces for decoding */
|
||||
XLogReaderState *reader;
|
||||
LogicalDecodingXLogPageReadCB page_read;
|
||||
struct ReorderBuffer *reorder;
|
||||
struct SnapBuild *snapshot_builder;
|
||||
|
||||
@@ -108,16 +105,14 @@ extern LogicalDecodingContext *CreateInitDecodingContext(const char *plugin,
|
||||
List *output_plugin_options,
|
||||
bool need_full_snapshot,
|
||||
XLogRecPtr restart_lsn,
|
||||
LogicalDecodingXLogPageReadCB page_read,
|
||||
WALSegmentCleanupCB cleanup_cb,
|
||||
XLogReaderRoutine *xl_routine,
|
||||
LogicalOutputPluginWriterPrepareWrite prepare_write,
|
||||
LogicalOutputPluginWriterWrite do_write,
|
||||
LogicalOutputPluginWriterUpdateProgress update_progress);
|
||||
extern LogicalDecodingContext *CreateDecodingContext(XLogRecPtr start_lsn,
|
||||
List *output_plugin_options,
|
||||
bool fast_forward,
|
||||
LogicalDecodingXLogPageReadCB page_read,
|
||||
WALSegmentCleanupCB cleanup_cb,
|
||||
XLogReaderRoutine *xl_routine,
|
||||
LogicalOutputPluginWriterPrepareWrite prepare_write,
|
||||
LogicalOutputPluginWriterWrite do_write,
|
||||
LogicalOutputPluginWriterUpdateProgress update_progress);
|
||||
|
||||
Reference in New Issue
Block a user