diff --git a/contrib/pg_logicalinspect/pg_logicalinspect.c b/contrib/pg_logicalinspect/pg_logicalinspect.c index 185f36a..308c653 100644 --- a/contrib/pg_logicalinspect/pg_logicalinspect.c +++ b/contrib/pg_logicalinspect/pg_logicalinspect.c @@ -205,8 +205,8 @@ pg_get_logical_snapshot_info(PG_FUNCTION_ARGS) values[i++] = BoolGetDatum(ondisk.builder.in_slot_creation); values[i++] = LSNGetDatum(ondisk.builder.last_serialized_snapshot); values[i++] = TransactionIdGetDatum(ondisk.builder.next_phase_at); - values[i++] = Int64GetDatum(ondisk.builder.committed.xcnt); + values[i++] = Int64GetDatum(ondisk.builder.committed.xcnt); if (ondisk.builder.committed.xcnt > 0) { Datum *arrayelems; @@ -223,7 +223,6 @@ pg_get_logical_snapshot_info(PG_FUNCTION_ARGS) nulls[i++] = true; values[i++] = Int64GetDatum(ondisk.builder.catchange.xcnt); - if (ondisk.builder.catchange.xcnt > 0) { Datum *arrayelems;