From: Andres Freund <andres@anarazel.de>
Date: Wed, 12 Aug 2015 15:35:50 +0000 (+0200)
Subject: Remove duplicated assignment in pg_create_physical_replication_slot.
X-Git-Tag: REL9_6_BETA1~1497
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4b059fddecefd5f473e539b28277874ab83f32f;p=postgresql

Remove duplicated assignment in pg_create_physical_replication_slot.

Reported-By: Gurjeet Singh
---

diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c
index 2dc6827990..b3c8140409 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;
 	}