Skip to content

Commit 09794be

Browse files
author
Matthias van de Meent
committed
Stop sending invalidation messages during WAL redo
1 parent 7fec926 commit 09794be

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/backend/access/heap/heapam_xlog.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,11 +1185,12 @@ heap_xlog_inplace(XLogReaderState *record)
11851185
if (BufferIsValid(buffer))
11861186
UnlockReleaseBuffer(buffer);
11871187

1188-
ProcessCommittedInvalidationMessages(xlrec->msgs,
1189-
xlrec->nmsgs,
1190-
xlrec->relcacheInitFileInval,
1191-
xlrec->dbId,
1192-
xlrec->tsId);
1188+
if (!am_wal_redo_postgres)
1189+
ProcessCommittedInvalidationMessages(xlrec->msgs,
1190+
xlrec->nmsgs,
1191+
xlrec->relcacheInitFileInval,
1192+
xlrec->dbId,
1193+
xlrec->tsId);
11931194
}
11941195

11951196
void

0 commit comments

Comments
 (0)