From b0946c5b97857cf476975306ce78355f9316e722 Mon Sep 17 00:00:00 2001
From: Kyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Date: Thu, 14 Mar 2019 15:02:54 +0900
Subject: [PATCH 2/2] step2: fix indentation

---
 src/backend/utils/cache/relcache.c | 50 +++++++++++++++++++-------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index a43fb040cb..f5dff5572e 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -5091,38 +5091,38 @@ GetRelationPublicationActions(Relation relation)
 
 	if (is_publishable_relation(relation))
 	{
-	/* Fetch the publication membership info. */
-	puboids = GetRelationPublications(RelationGetRelid(relation));
-	puboids = list_concat_unique_oid(puboids, GetAllTablesPublications());
+		/* Fetch the publication membership info. */
+		puboids = GetRelationPublications(RelationGetRelid(relation));
+		puboids = list_concat_unique_oid(puboids, GetAllTablesPublications());
 
-	foreach(lc, puboids)
-	{
-		Oid			pubid = lfirst_oid(lc);
-		HeapTuple	tup;
-		Form_pg_publication pubform;
+		foreach(lc, puboids)
+		{
+			Oid			pubid = lfirst_oid(lc);
+			HeapTuple	tup;
+			Form_pg_publication pubform;
 
-		tup = SearchSysCache1(PUBLICATIONOID, ObjectIdGetDatum(pubid));
+			tup = SearchSysCache1(PUBLICATIONOID, ObjectIdGetDatum(pubid));
 
-		if (!HeapTupleIsValid(tup))
-			elog(ERROR, "cache lookup failed for publication %u", pubid);
+			if (!HeapTupleIsValid(tup))
+				elog(ERROR, "cache lookup failed for publication %u", pubid);
 
-		pubform = (Form_pg_publication) GETSTRUCT(tup);
+			pubform = (Form_pg_publication) GETSTRUCT(tup);
 
-		pubactions->pubinsert |= pubform->pubinsert;
-		pubactions->pubupdate |= pubform->pubupdate;
-		pubactions->pubdelete |= pubform->pubdelete;
-		pubactions->pubtruncate |= pubform->pubtruncate;
+			pubactions->pubinsert |= pubform->pubinsert;
+			pubactions->pubupdate |= pubform->pubupdate;
+			pubactions->pubdelete |= pubform->pubdelete;
+			pubactions->pubtruncate |= pubform->pubtruncate;
 
-		ReleaseSysCache(tup);
+			ReleaseSysCache(tup);
 
-		/*
-		 * If we know everything is replicated, there is no point to check for
-		 * other publications.
-		 */
-		if (pubactions->pubinsert && pubactions->pubupdate &&
-			pubactions->pubdelete && pubactions->pubtruncate)
-			break;
-	}
+			/*
+			 * If we know everything is replicated, there is no point to check
+			 * for other publications.
+			 */
+			if (pubactions->pubinsert && pubactions->pubupdate &&
+				pubactions->pubdelete && pubactions->pubtruncate)
+				break;
+		}
 	}
 
 	if (relation->rd_pubactions)
-- 
2.16.3

