Re: -D option of pg_resetwal is only works with absolute path - Mailing list pgsql-hackers

From David Steele
Subject Re: -D option of pg_resetwal is only works with absolute path
Date
Msg-id 0444b276-a7c3-57fe-0b5a-04928aed177c@pgmasters.net
Whole thread Raw
In response to Re: -D option of pg_resetwal is only works with absolute path  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: -D option of pg_resetwal is only works with absolute path
List 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: A Japanese-unfriendy error message contruction
Next
From: Tom Lane
Date:
Subject: Re: -D option of pg_resetwal is only works with absolute path