Ensure that all startup paths (postmaster, standalone postgres, or
Tom Lane <tgl@sss.pgh.pa.us>
Ensure that all startup paths (postmaster, standalone postgres, or bootstrap) check for a valid PG_VERSION file before looking at anything else in the data directory. This fixes confusing error report when trying to start current sources in a pre-7.1 data directory. Per trouble report from Rich Shepard 10/18/01.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootstrap.c | modified | +4 −2 |
| src/backend/postmaster/postmaster.c | modified | +6 −6 |
| src/backend/tcop/postgres.c | modified | +8 −2 |
| src/backend/utils/init/miscinit.c | modified | +3 −5 |
| src/backend/utils/init/postinit.c | modified | +2 −8 |
| src/bin/initdb/initdb.sh | modified | +6 −4 |