Re: Renaming some binaries - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Renaming some binaries
Date
Msg-id d0bd7c8b-6b22-f48d-9acf-77fd3d43a0df@2ndquadrant.com
Whole thread Raw
In response to Renaming some binaries  (Euler Taveira <euler@timbira.com.br>)
Responses Re: Renaming some binaries  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 8/26/16 12:26 PM, Euler Taveira wrote:
> initdb: we already have 'pg_ctl init' (since 9.0) and could remove initdb.

I have a concern specifically about pg_ctl.  Depending on how your
PostgreSQL is packaged, not all of the pg_ctl actions are safe or
sensible to run.  For example, if you are using systemd, then using
pg_ctl restart will probably not do the right thing.  And depending on
SELinux (maybe), running initdb directly might also not do the right
thing.  In most cases, you can just not use pg_ctl and do all these
things differently, but for example pg_ctl promote is the only
documented way to do that thing.

Until we have a better way to figure that out, I wouldn't want to put
more things into pg_ctl, especially as the only way.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Renaming of pg_xlog and pg_clog
Next
From: Martín Marqués
Date:
Subject: Re: pg_dump with tables created in schemas created by extensions