pg_ctl -w with postgresql.conf in non-default path

From: <yo(at)hirano(dot)cc>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_ctl -w with postgresql.conf in non-default path
Date: 2008-07-07 02:21:34
Message-ID: 20080707112134.6C050478@hirano.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello guys,

This is my first post to this list..

I'm using PostgreSQL8.3.3 and I moved postgresql.conf to the
outside of DATA direcotory, and invoked postgres via pg_ctl
as following.

pg_ctl -w -D /data -o '--config-file=/home/hirano/postgresql.conf' start

This seems to work well, but when I changed the port parameter in
that postgresql.conf, pg_ctl waits for timeout by "-w" option.
In this case, postgres correctly listens the port I wrote in
config, but pg_ctl checkes the port in the data/postgresql.conf
file.

I think this is because the path to postgresql.conf is hard-coded
in the pg_ctl.c

| snprintf(conf_file, MAXPGPATH, "%s/postgresql.conf", pg_data);

But actually there're no descriptions of --config-file option in the
manual of postgres command, although I'm not sure how I could
find it...

Is it bad way to use --config-file option or pg_ctl bug?

Regards.

--
HIRANO Yoshitaka

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-07-07 07:10:00 Re: [PATCHES] WIP: executor_hook for pg_stat_statements
Previous Message ITAGAKI Takahiro 2008-07-07 02:03:32 Re: [PATCHES] WIP: executor_hook for pg_stat_statements