Skip to content

Commit 56a9adc

Browse files
committed
Rename pg_upgrade variables, for clarity.
1 parent e66e439 commit 56a9adc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/pg_upgrade/function.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ install_support_functions(void)
2727

2828
for (dbnum = 0; dbnum < new_cluster.dbarr.ndbs; dbnum++)
2929
{
30-
DbInfo *newdb = &new_cluster.dbarr.dbs[dbnum];
31-
PGconn *conn = connectToServer(&new_cluster, newdb->db_name);
30+
DbInfo *new_db = &new_cluster.dbarr.dbs[dbnum];
31+
PGconn *conn = connectToServer(&new_cluster, new_db->db_name);
3232

3333
/* suppress NOTICE of dropped objects */
3434
PQclear(executeQueryOrDie(conn,
@@ -98,8 +98,8 @@ uninstall_support_functions(void)
9898

9999
for (dbnum = 0; dbnum < new_cluster.dbarr.ndbs; dbnum++)
100100
{
101-
DbInfo *newdb = &new_cluster.dbarr.dbs[dbnum];
102-
PGconn *conn = connectToServer(&new_cluster, newdb->db_name);
101+
DbInfo *new_db = &new_cluster.dbarr.dbs[dbnum];
102+
PGconn *conn = connectToServer(&new_cluster, new_db->db_name);
103103

104104
/* suppress NOTICE of dropped objects */
105105
PQclear(executeQueryOrDie(conn,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy