Commit 5c4b25ac authored by Andres Freund's avatar Andres Freund

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
parent 70fd0e14
...@@ -268,7 +268,7 @@ pg_get_replication_slots(PG_FUNCTION_ARGS) ...@@ -268,7 +268,7 @@ pg_get_replication_slots(PG_FUNCTION_ARGS)
else else
nulls[i++] = true; nulls[i++] = true;
if (restart_lsn != InvalidTransactionId) if (restart_lsn != InvalidXLogRecPtr)
values[i++] = LSNGetDatum(restart_lsn); values[i++] = LSNGetDatum(restart_lsn);
else else
nulls[i++] = true; nulls[i++] = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment