Make sure pg_rewind can't run as root

Magnus Hagander <magnus@hagander.net>

Commit: 5d5aeddabfe0b6b21f556c72a71e0454833d63e5
Author: Magnus Hagander <magnus@hagander.net>
Date: 2018-04-09T19:33:33Z
Releases: 11.0
Make sure pg_rewind can't run as root

Previously a warning was printed, but the tool actually kept running
even when running as root. This is something we definitely want to
prevent, but since this means a behavior change, not backpatching.

Author: Michael Paquier

Files

PathChange+/−
src/bin/pg_rewind/pg_rewind.c modified +1 −0