In pg_upgrade, remove use of whichCluster, and just pass old/new cluster
Bruce Momjian <bruce@momjian.us>
In pg_upgrade, remove use of whichCluster, and just pass old/new cluster pointers, which simplifies the code. This was not possible in 9.0 because everything was in a single nested struct, but is possible now. Per suggestion from Tom.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_upgrade/check.c | modified | +38 −42 |
| contrib/pg_upgrade/exec.c | modified | +5 −5 |
| contrib/pg_upgrade/function.c | modified | +8 −9 |
| contrib/pg_upgrade/info.c | modified | +41 −45 |
| contrib/pg_upgrade/pg_upgrade.c | modified | +9 −10 |
| contrib/pg_upgrade/pg_upgrade.h | modified | +19 −35 |
| contrib/pg_upgrade/relfilenode.c | modified | +3 −4 |
| contrib/pg_upgrade/server.c | modified | +18 −24 |
| contrib/pg_upgrade/tablespace.c | modified | +11 −14 |
| contrib/pg_upgrade/version.c | modified | +4 −6 |
| contrib/pg_upgrade/version_old_8_3.c | modified | +25 −33 |