Skip to content

Commit d4ad167

Browse files
committed
Fix copy & paste mistake in pg_get_replication_slots().
XLogRecPtr was compared with InvalidTransactionId instead of InvalidXLogRecPtr. As both are defined to the same value this doesn't cause any actual problems, but it's still wrong. Backpatch: 9.4-master, bug was introduced in 9.4
1 parent 68b5c08 commit d4ad167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/slotfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ pg_get_replication_slots(PG_FUNCTION_ARGS)
263263
else
264264
nulls[i++] = true;
265265

266-
if (restart_lsn != InvalidTransactionId)
266+
if (restart_lsn != InvalidXLogRecPtr)
267267
values[i++] = LSNGetDatum(restart_lsn);
268268
else
269269
nulls[i++] = true;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy