pg_ctl options checking

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: pg_ctl options checking
Date: 2006-04-13 18:07:25
Message-ID: 1144951645.4317.190.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

pg_ctl: Minor patch to implement option checking to prevent silently
ignoring options and continuing with defaults.

All of the following now cause errors:

pg_ctl -D test -m logfile start
pg_ctl -D test -U foo start
pg_ctl -D test -W start
pg_ctl -D test -w stop
pg_ctl -D test -l fast stop
etc.. (16 possible error combinations in total now checked)

The following also fails, following the --help, though I think we might
want to change this so that it does actually work:

pg_ctl -D test -l logfile restart

Patch against cvstip, make check, tested on long and short options.

--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com

Attachment Content-Type Size
pg_ctl_opts.patch text/x-patch 3.4 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-04-13 19:38:04 Re: OS cached buffers (was: Support Parallel Query Execution
Previous Message Richard Huxton 2006-04-13 16:58:21 Proposed doc-patch: Identifying the Current WAL file