Re: pg_resetwal is broken if run from v10 against older version of PG data directory
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: tushar <tushar.ahuja@enterprisedb.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-05-29T15:45:37Z
Lists: pgsql-hackers
tushar <tushar.ahuja@enterprisedb.com> writes: > I have installed PG v9.6 / v9.5 , if we run pg_resetwal from v10 > binaries against data directory of v9.6/9.5 ,getting this error - > centos@centos-cpula bin]$ ./pg_resetwal -D /tmp/pg9.6/bin/data/ > pg_resetwal: pg_control exists but is broken or unknown version; ignoring it > pg_resetwal: could not open directory "pg_wal": No such file or directory This is pretty much exactly what I'd expect. Why would you think that pg_resetwal should work with other major versions? (Maybe we should have it look at PG_VERSION and refuse to do anything if that doesn't have the expected contents.) regards, tom lane
Commits
-
Prevent running pg_resetwal/pg_resetxlog against wrong-version data dirs.
- f3db7f164a29 10.0 landed
- 9ed68f64114e 9.4.13 landed
- 98bff290747e 9.6.4 landed
- 78e4fb8e41df 9.3.18 landed
- 6b48f06da85e 9.2.22 landed
- 5bcbc4cd6d9c 9.5.8 landed
-
Rename "pg_xlog" directory to "pg_wal".
- f82ec32ac30a 10.0 cited