@@ -13950,14 +13950,14 @@ TryReuseIndex(Oid oldId, IndexStmt *stmt)
1395013950 Form_pg_am accessMethodForm;
1395113951 IndexAmRoutine *amRoutine;
1395213952 char *accessMethodName;
13953- Oid heapRelId = IndexGetRelation(oldId, false);
13954- Relation heapRel = table_open(heapRelId, ShareLock);
13955-
13953+ Oid heapRelId = IndexGetRelation(oldId, false);
13954+ Relation heapRel = table_open(heapRelId, ShareLock);
13955+
1395613956 stmt->oldNumber = irel->rd_locator.relNumber;
1395713957 stmt->oldCreateSubid = irel->rd_createSubid;
1395813958 stmt->oldFirstRelfilelocatorSubid = irel->rd_firstRelfilelocatorSubid;
13959-
13960-
13959+
13960+
1396113961 /*
1396213962 * look up the access method to call amreuse
1396313963 */
@@ -13966,8 +13966,9 @@ TryReuseIndex(Oid oldId, IndexStmt *stmt)
1396613966 if (!HeapTupleIsValid(tuple))
1396713967 {
1396813968 /*
13969- * Hack to provide more-or-less-transparent updating of old RTREE
13970- * indexes to GiST: if RTREE is requested and not found, use GIST.
13969+ * Hack to provide more-or-less-transparent updating of old
13970+ * RTREE indexes to GiST: if RTREE is requested and not found,
13971+ * use GIST.
1397113972 */
1397213973 if (strcmp(accessMethodName, "rtree") == 0)
1397313974 {
@@ -13987,9 +13988,10 @@ TryReuseIndex(Oid oldId, IndexStmt *stmt)
1398713988 amRoutine = GetIndexAmRoutineWithTableAM(heapRel->rd_rel->relam, accessMethodForm->amhandler);
1398813989 ReleaseSysCache(tuple);
1398913990 table_close(heapRel, NoLock);
13990-
13991- if(amRoutine->amreuse) {
13992- (*amRoutine->amreuse)(irel);
13991+
13992+ if (amRoutine->amreuse)
13993+ {
13994+ (*amRoutine->amreuse) (irel);
1399313995 }
1399413996 }
1399513997 index_close(irel, NoLock);
0 commit comments