Fix copy & paste mistake in pg_get_replication_slots().
authorAndres Freund
Mon, 10 Aug 2015 11:28:19 +0000 (13:28 +0200)
committerAndres Freund
Mon, 10 Aug 2015 11:28:19 +0000 (13:28 +0200)
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

src/backend/replication/slotfuncs.c

index bd4701f97dfa04e2b8ade5c1c16363c31aa76544..83d06b2361afa7352724067f8361790adbb0efce 100644 (file)
@@ -263,7 +263,7 @@ pg_get_replication_slots(PG_FUNCTION_ARGS)
        else
            nulls[i++] = true;
 
-       if (restart_lsn != InvalidTransactionId)
+       if (restart_lsn != InvalidXLogRecPtr)
            values[i++] = LSNGetDatum(restart_lsn);
        else
            nulls[i++] = true;