pg_ctl command option anomalies

From: Neha Khatri <nehakhatri5(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: pg_ctl command option anomalies
Date: 2017-04-20 05:12:36
Message-ID: CAFO0U+8cZs_dtg_yA5KH8Q=JdX_xsik=Lxe8CXU_Y5+dfCv4Sg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

Some of the pg_ctl modes do not require following options:
-m, -w, -t, -c, -l, -o, -p

However when one of this option is provided with any of the unsupported
pg_ctl mode, misleading message is displayed:
$ pg_ctl status -D data -m
pg_ctl: option requires an argument -- 'm'

I believe that above command execution should give following message:
pg_ctl: invalid option -- 'm'

Also, when an argument is provided for that option, the command proceeds
without any error.
$ pg_ctl status -D data/ -m fast
pg_ctl: server is running (PID: 28108)
/home/host1/bin/postgres "-D" "data"

It seems like a known pg_ctl anomaly. Is there a thought in the direction
of changing/correcting this behaviour?

Regards,
Neha

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2017-04-20 05:53:47 Re: pg_ctl command option anomalies
Previous Message David G. Johnston 2017-04-12 15:02:00 Re: