On Tue, May 30, 2017 at 4:24 AM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
> Just check the name of the directory so that pg_resetwal will refuse
> to run against pg_xlog directory
That's a strictly weaker integrity check than what Tom already
committed. That only distinguishes pre-10 from post-10, whereas Tom
linked it to the specific major version, which is better.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company