From 519c008a966251e45d683738d89f238e5c801781 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 7 Jan 2011 22:01:44 -0500
Subject: [PATCH] Fix C indenting in pg_upgrade function.

---
 contrib/pg_upgrade/function.c | 124 +++++++++++++++++-----------------
 1 file changed, 62 insertions(+), 62 deletions(-)

diff --git a/contrib/pg_upgrade/function.c b/contrib/pg_upgrade/function.c
index 1a66df295a0..e8502e2bb2a 100644
--- a/contrib/pg_upgrade/function.c
+++ b/contrib/pg_upgrade/function.c
@@ -21,68 +21,68 @@
 void
 install_db_support_functions(const char *db_name)
 {
-		PGconn *conn = connectToServer(&new_cluster, db_name);
-		
-		/* suppress NOTICE of dropped objects */
-		PQclear(executeQueryOrDie(conn,
-								  "SET client_min_messages = warning;"));
-		PQclear(executeQueryOrDie(conn,
-						   "DROP SCHEMA IF EXISTS binary_upgrade CASCADE;"));
-		PQclear(executeQueryOrDie(conn,
-								  "RESET client_min_messages;"));
-
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE SCHEMA binary_upgrade;"));
-
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE OR REPLACE FUNCTION "
-					 "		binary_upgrade.set_next_pg_type_oid(OID) "
-								  "RETURNS VOID "
-								  "AS '$libdir/pg_upgrade_support' "
-								  "LANGUAGE C STRICT;"));
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE OR REPLACE FUNCTION "
-			   "		binary_upgrade.set_next_array_pg_type_oid(OID) "
-								  "RETURNS VOID "
-								  "AS '$libdir/pg_upgrade_support' "
-								  "LANGUAGE C STRICT;"));
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE OR REPLACE FUNCTION "
-			   "		binary_upgrade.set_next_toast_pg_type_oid(OID) "
-								  "RETURNS VOID "
-								  "AS '$libdir/pg_upgrade_support' "
-								  "LANGUAGE C STRICT;"));
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE OR REPLACE FUNCTION "
-				"		binary_upgrade.set_next_heap_pg_class_oid(OID) "
-								  "RETURNS VOID "
-								  "AS '$libdir/pg_upgrade_support' "
-								  "LANGUAGE C STRICT;"));
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE OR REPLACE FUNCTION "
-			   "		binary_upgrade.set_next_index_pg_class_oid(OID) "
-								  "RETURNS VOID "
-								  "AS '$libdir/pg_upgrade_support' "
-								  "LANGUAGE C STRICT;"));
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE OR REPLACE FUNCTION "
-			   "		binary_upgrade.set_next_toast_pg_class_oid(OID) "
-								  "RETURNS VOID "
-								  "AS '$libdir/pg_upgrade_support' "
-								  "LANGUAGE C STRICT;"));
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE OR REPLACE FUNCTION "
-			 "		binary_upgrade.set_next_pg_enum_oid(OID) "
-								  "RETURNS VOID "
-								  "AS '$libdir/pg_upgrade_support' "
-								  "LANGUAGE C STRICT;"));
-		PQclear(executeQueryOrDie(conn,
-								  "CREATE OR REPLACE FUNCTION "
-			 "		binary_upgrade.set_next_pg_authid_oid(OID) "
-								  "RETURNS VOID "
-								  "AS '$libdir/pg_upgrade_support' "
-								  "LANGUAGE C STRICT;"));
-		PQfinish(conn);
+	PGconn *conn = connectToServer(&new_cluster, db_name);
+	
+	/* suppress NOTICE of dropped objects */
+	PQclear(executeQueryOrDie(conn,
+							  "SET client_min_messages = warning;"));
+	PQclear(executeQueryOrDie(conn,
+					   "DROP SCHEMA IF EXISTS binary_upgrade CASCADE;"));
+	PQclear(executeQueryOrDie(conn,
+							  "RESET client_min_messages;"));
+
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE SCHEMA binary_upgrade;"));
+
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE OR REPLACE FUNCTION "
+				 "		binary_upgrade.set_next_pg_type_oid(OID) "
+							  "RETURNS VOID "
+							  "AS '$libdir/pg_upgrade_support' "
+							  "LANGUAGE C STRICT;"));
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE OR REPLACE FUNCTION "
+		   "		binary_upgrade.set_next_array_pg_type_oid(OID) "
+							  "RETURNS VOID "
+							  "AS '$libdir/pg_upgrade_support' "
+							  "LANGUAGE C STRICT;"));
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE OR REPLACE FUNCTION "
+		   "		binary_upgrade.set_next_toast_pg_type_oid(OID) "
+							  "RETURNS VOID "
+							  "AS '$libdir/pg_upgrade_support' "
+							  "LANGUAGE C STRICT;"));
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE OR REPLACE FUNCTION "
+			"		binary_upgrade.set_next_heap_pg_class_oid(OID) "
+							  "RETURNS VOID "
+							  "AS '$libdir/pg_upgrade_support' "
+							  "LANGUAGE C STRICT;"));
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE OR REPLACE FUNCTION "
+		   "		binary_upgrade.set_next_index_pg_class_oid(OID) "
+							  "RETURNS VOID "
+							  "AS '$libdir/pg_upgrade_support' "
+							  "LANGUAGE C STRICT;"));
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE OR REPLACE FUNCTION "
+		   "		binary_upgrade.set_next_toast_pg_class_oid(OID) "
+							  "RETURNS VOID "
+							  "AS '$libdir/pg_upgrade_support' "
+							  "LANGUAGE C STRICT;"));
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE OR REPLACE FUNCTION "
+		 "		binary_upgrade.set_next_pg_enum_oid(OID) "
+							  "RETURNS VOID "
+							  "AS '$libdir/pg_upgrade_support' "
+							  "LANGUAGE C STRICT;"));
+	PQclear(executeQueryOrDie(conn,
+							  "CREATE OR REPLACE FUNCTION "
+		 "		binary_upgrade.set_next_pg_authid_oid(OID) "
+							  "RETURNS VOID "
+							  "AS '$libdir/pg_upgrade_support' "
+							  "LANGUAGE C STRICT;"));
+	PQfinish(conn);
 }
 
 
-- 
GitLab