From cdd61237d6265fa355afa772ca3eee39e4905bcb Mon Sep 17 00:00:00 2001
From: Robert Haas <rhaas@postgresql.org>
Date: Tue, 19 Jul 2011 10:30:03 -0400
Subject: [PATCH] Remove superfluous variable.

Reported by Peter Eisentraut.
---
 src/backend/commands/indexcmds.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index 16eae204ab3..a1c299d00ee 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -123,7 +123,6 @@ CheckIndexCompatible(Oid oldId,
 	HeapTuple	tuple;
 	Form_pg_am	accessMethodForm;
 	bool		amcanorder;
-	RegProcedure amoptions;
 	int16	   *coloptions;
 	IndexInfo  *indexInfo;
 	int			numberOfAttributes;
@@ -158,7 +157,6 @@ CheckIndexCompatible(Oid oldId,
 	accessMethodId = HeapTupleGetOid(tuple);
 	accessMethodForm = (Form_pg_am) GETSTRUCT(tuple);
 	amcanorder = accessMethodForm->amcanorder;
-	amoptions = accessMethodForm->amoptions;
 	ReleaseSysCache(tuple);
 
 	/*
-- 
GitLab