[HACKERS] pg_resetwal is broken if run from v10 against older version of PGdata directory - Mailing list pgsql-hackers

From tushar
Subject [HACKERS] pg_resetwal is broken if run from v10 against older version of PGdata directory
Date
Msg-id f4b8eb91-b934-8a0d-b3cc-68f06e2279d1@enterprisedb.com
Whole thread Raw
Responses Re: [HACKERS] pg_resetwal is broken if run from v10 against olderversion of PG data directory  (Amit Kapila <amit.kapila16@gmail.com>)
Re: [HACKERS] pg_resetwal is broken if run from v10 against older version of PG data directory  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

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
[centos@centos-cpula bin]$

Steps to reproduce-
installed PG v9.6
installed PG v10
go to bin directory of v10 and run pg_resetwal , provide -D = data 
directory of v9.6.

-- 
regards,tushar
EnterpriseDB  https://www.enterprisedb.com/
The Enterprise PostgreSQL Company




pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: [HACKERS] Macros bundling RELKIND_* conditions
Next
From: Jeevan Ladhe
Date:
Subject: Re: [HACKERS] Adding support for Default partition in partitioning