diff options
author | Thomas Munro | 2021-05-10 04:00:53 +0000 |
---|---|---|
committer | Thomas Munro | 2021-05-10 04:06:09 +0000 |
commit | c2dc19342e05e081dc13b296787baa38352681ef (patch) | |
tree | 10ba15831ecc5e9795912cac612c871ffad63a82 /src/include/pgstat.h | |
parent | 63db0ac3f9e6bae313da67f640c95c0045b7f0ee (diff) |
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 by a55a9847, as the
corresponding section of config.sgml is now reverted.
Discussion: https://postgr.es/m/CAOuzzgrn7iKnFRsB4MHp3UisEQAGgZMbk_ViTN4HV4-Ksq8zCg%40mail.gmail.com
Diffstat (limited to 'src/include/pgstat.h')
-rw-r--r-- | src/include/pgstat.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 1ce363e7d18..72ff4a06d6f 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -74,7 +74,6 @@ typedef enum StatMsgType PGSTAT_MTYPE_BGWRITER, PGSTAT_MTYPE_WAL, PGSTAT_MTYPE_SLRU, - PGSTAT_MTYPE_RECOVERYPREFETCH, PGSTAT_MTYPE_FUNCSTAT, PGSTAT_MTYPE_FUNCPURGE, PGSTAT_MTYPE_RECOVERYCONFLICT, @@ -198,19 +197,6 @@ typedef struct PgStat_TableXactStatus struct PgStat_TableXactStatus *next; /* next of same subxact */ } PgStat_TableXactStatus; -/* - * Recovery prefetching statistics persisted on disk by pgstat.c, but kept in - * shared memory by xlogprefetch.c. - */ -typedef struct PgStat_RecoveryPrefetchStats -{ - PgStat_Counter prefetch; - PgStat_Counter skip_hit; - PgStat_Counter skip_new; - PgStat_Counter skip_fpw; - PgStat_Counter skip_seq; - TimestampTz stat_reset_timestamp; -} PgStat_RecoveryPrefetchStats; /* ------------------------------------------------------------ * Message formats follow @@ -553,15 +539,6 @@ typedef struct PgStat_MsgReplSlot PgStat_Counter m_total_bytes; } PgStat_MsgReplSlot; -/* ---------- - * PgStat_MsgRecoveryPrefetch Sent by XLogPrefetch to save statistics. - * ---------- - */ -typedef struct PgStat_MsgRecoveryPrefetch -{ - PgStat_MsgHdr m_hdr; - PgStat_RecoveryPrefetchStats m_stats; -} PgStat_MsgRecoveryPrefetch; /* ---------- * PgStat_MsgRecoveryConflict Sent by the backend upon recovery conflict @@ -725,7 +702,6 @@ typedef union PgStat_Msg PgStat_MsgBgWriter msg_bgwriter; PgStat_MsgWal msg_wal; PgStat_MsgSLRU msg_slru; - PgStat_MsgRecoveryPrefetch msg_recoveryprefetch; PgStat_MsgFuncstat msg_funcstat; PgStat_MsgFuncpurge msg_funcpurge; PgStat_MsgRecoveryConflict msg_recoveryconflict; @@ -1115,7 +1091,6 @@ extern void pgstat_twophase_postabort(TransactionId xid, uint16 info, extern void pgstat_send_archiver(const char *xlog, bool failed); extern void pgstat_send_bgwriter(void); -extern void pgstat_send_recoveryprefetch(PgStat_RecoveryPrefetchStats *stats); extern void pgstat_report_wal(void); extern bool pgstat_send_wal(bool force); @@ -1132,7 +1107,6 @@ extern PgStat_GlobalStats *pgstat_fetch_global(void); extern PgStat_WalStats *pgstat_fetch_stat_wal(void); extern PgStat_SLRUStats *pgstat_fetch_slru(void); extern PgStat_StatReplSlotEntry *pgstat_fetch_replslot(NameData slotname); -extern PgStat_RecoveryPrefetchStats *pgstat_fetch_recoveryprefetch(void); extern void pgstat_count_slru_page_zeroed(int slru_idx); extern void pgstat_count_slru_page_hit(int slru_idx); |