pg_ctl init doc bug

Started by Euler Taveira de Oliveiraover 15 years ago2 messageshackers
Jump to latest

Hi,

While executing the following command I got:

$ pg_ctl init -D /tmp/foo -o "-N 11"
/home/euler/pg/bin/initdb: invalid option -- N
Try "initdb --help" for more information.
pg_ctl: database system initialization failed

I tried "-N 11" (postgres option) after looking at the manual but the -o
option only accept initdb options so I think there is a documentation bug.
Patch is attached.

While at it, is it worth adding a pg_ctl init example?

--
Euler Taveira de Oliveira
http://www.timbira.com/

Attachments:

pgctl-init.difftext/x-patch; name=pgctl-init.diffDownload+16-2
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Euler Taveira de Oliveira (#1)
Re: pg_ctl init doc bug

Euler Taveira de Oliveira <euler@timbira.com> writes:

I tried "-N 11" (postgres option) after looking at the manual but the -o
option only accept initdb options so I think there is a documentation bug.
Patch is attached.

Yeah, the init option was squeezed in later with only minimal attention
to documentation. Agree with your idea of treating its -o option as
taking a different kind of argument. Will apply.

regards, tom lane