8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f12d9 commit 10ac3c9Copy full SHA for 10ac3c9
src/parsexlog.c
@@ -1439,6 +1439,7 @@ XLogThreadWorker(void *arg)
1439
* Usually SimpleXLogPageRead() does it by itself. But here we need
1440
* to do it manually to support threads.
1441
*/
1442
+#if PG_VERSION_NUM >= 150000
1443
if (reader_data->need_switch && (
1444
errormsg == NULL ||
1445
/*
@@ -1447,6 +1448,9 @@ XLogThreadWorker(void *arg)
1447
1448
* But we continue as we did with bug present in Pg < 15.
1449
1450
!XLogRecPtrIsInvalid(xlogreader->abortedRecPtr)))
1451
+#else
1452
+ if (reader_data->need_switch && errormsg == NULL)
1453
+#endif
1454
{
1455
if (SwitchThreadToNextWal(xlogreader, thread_arg))
1456
continue;
0 commit comments