Re: -D option of pg_resetwal is only works with absolute path

David Steele <david@pgmasters.net>

From: David Steele <david@pgmasters.net>
To: Tom Lane <tgl@sss.pgh.pa.us>, tushar <tushar.ahuja@enterprisedb.com>, Stephen Frost <sfrost@snowman.net>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2018-05-23T15:34:19Z
Lists: pgsql-hackers
On 5/23/18 10:08 AM, Tom Lane wrote:
> tushar <tushar.ahuja@enterprisedb.com> writes:
>> In the  latest PG v11,  found that  -D option of pg_resetwal is only
>> works with absolute path .. not with relative path
> 
> Confirmed here.  This did work in previous releases, so I'd say it's
> unquestionably a bug.
> 
> [ diffs v10 against head... ]
> 
> Seems to be caused by careless placement of new umask-changing code.
> I wonder how many other places that patch broke similarly.

I'll look into this today.

-- 
-David
david@pgmasters.net


Commits

  1. Fix incorrect ordering of operations in pg_resetwal and pg_rewind.