1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Make pg_upgrade compile again

This commit is contained in:
Alvaro Herrera
2011-02-15 19:52:32 -03:00
parent eff027c432
commit 8b2557553c
2 changed files with 3 additions and 2 deletions

View File

@ -147,8 +147,7 @@ get_db_and_rel_infos(ClusterInfo *cluster)
{ {
int dbnum; int dbnum;
if (cluster->dbarr) free_db_and_rel_infos(&cluster->dbarr);
free_db_and_rel_infos(cluster->dbarr);
get_db_infos(cluster); get_db_infos(cluster);

View File

@ -64,6 +64,8 @@ main(int argc, char **argv)
bool live_check = false; bool live_check = false;
parseCommandLine(argc, argv); parseCommandLine(argc, argv);
old_cluster.dbarr.ndbs = 0;
new_cluster.dbarr.ndbs = 0;
output_check_banner(&live_check); output_check_banner(&live_check);