Re: Fix pg_rewind which can be run as root user - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Fix pg_rewind which can be run as root user
Date
Msg-id CABUevEwbUnBEdquAgT5wbi5yOsJmDjMGEN5dK-TB4wy9pL27mQ@mail.gmail.com
Whole thread Raw
In response to Re: Fix pg_rewind which can be run as root user  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fix pg_rewind which can be run as root user
List pgsql-hackers
On Mon, Apr 9, 2018 at 9:31 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Magnus Hagander <magnus@hagander.net> writes:
> Seems simple enough and the right hting to do, but I wonder if we should
> really backpatch it. Yes, the behaviour is not great now, but there is also
> a non-zero risk of breaking peoples automated failover scripts of we
> backpatch it, isn't it?

Yeah, I'd vote against backpatching.  This doesn't seem like an essential
fix.

Applied, and pushed this way. 

--

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fix pg_rewind which can be run as root user
Next
From: Andres Freund
Date:
Subject: Re: PostgreSQL's handling of fsync() errors is unsafe and risks data loss at least on XFS