From: Bruce Momjian Date: Thu, 6 Jan 2011 01:14:59 +0000 (-0500) Subject: Rename pg_upgrade variables, for clarity. X-Git-Tag: REL9_1_ALPHA4~517 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56a9adcb96ead8569582aa1f0f77a8fa9e24c189;p=postgresql Rename pg_upgrade variables, for clarity. --- diff --git a/contrib/pg_upgrade/function.c b/contrib/pg_upgrade/function.c index bd96b03ef4..2ab8e4f403 100644 --- a/contrib/pg_upgrade/function.c +++ b/contrib/pg_upgrade/function.c @@ -27,8 +27,8 @@ install_support_functions(void) for (dbnum = 0; dbnum < new_cluster.dbarr.ndbs; dbnum++) { - DbInfo *newdb = &new_cluster.dbarr.dbs[dbnum]; - PGconn *conn = connectToServer(&new_cluster, newdb->db_name); + DbInfo *new_db = &new_cluster.dbarr.dbs[dbnum]; + PGconn *conn = connectToServer(&new_cluster, new_db->db_name); /* suppress NOTICE of dropped objects */ PQclear(executeQueryOrDie(conn, @@ -98,8 +98,8 @@ uninstall_support_functions(void) for (dbnum = 0; dbnum < new_cluster.dbarr.ndbs; dbnum++) { - DbInfo *newdb = &new_cluster.dbarr.dbs[dbnum]; - PGconn *conn = connectToServer(&new_cluster, newdb->db_name); + DbInfo *new_db = &new_cluster.dbarr.dbs[dbnum]; + PGconn *conn = connectToServer(&new_cluster, new_db->db_name); /* suppress NOTICE of dropped objects */ PQclear(executeQueryOrDie(conn,