Re: pg_resetwal is broken if run from v10 against older version of PG data directory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_resetwal is broken if run from v10 against older version of PG data directory
Date: 2017-05-29 15:45:37
Message-ID: 10763.1496072737@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

tushar <tushar(dot)ahuja(at)enterprisedb(dot)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(at)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-05-29 15:45:41 Re: pg_resetwal is broken if run from v10 against older version of PG data directory
Previous Message Dang Minh Huong 2017-05-29 15:22:28 Re: Extra Vietnamese unaccent rules