PS_NITPICKS_v7.txt

text/plain

Filename: PS_NITPICKS_v7.txt
Type: text/plain
Part: 0
Message: Re: Add contrib/pg_logicalsnapinspect
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;