diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c
index 2dc682799002fc5bebb6771756d921889f024f49..b3c81404091942a6feb27ce9a3822558538f9e5e 100644
--- a/src/backend/replication/slotfuncs.c
+++ b/src/backend/replication/slotfuncs.c
@@ -76,7 +76,6 @@ pg_create_physical_replication_slot(PG_FUNCTION_ARGS)
 	}
 	else
 	{
-		values[0] = NameGetDatum(&MyReplicationSlot->data.name);
 		nulls[1] = true;
 	}