Removed stderr pipe to stdout on pg_ctl process (#896)
Removed stderr pipe to stdout on pg_ctl process (#896)

Inheriting stderr from the main Patroni process allows all Postgres logs to be seen along with all patroni logs. This is very useful in a container environment as Patroni and Postgres logs may be consumed using standard tools (docker logs, kubectl, etc).

In addition to that, this change fixes a bug with Patroni not being able to catch postmaster pid when postgres writing some warnings into stderr
zalando/patroni,zalando/patroni