Re: strange pg_ctl's behavior

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: strange pg_ctl's behavior
Дата
Msg-id 47D65BF0.2020507@archonet.com
обсуждение исходный текст
Ответ на Re: strange pg_ctl's behavior  (Richard Huxton <dev@archonet.com>)
Ответы Re: strange pg_ctl's behavior  (Richard Huxton <dev@archonet.com>)
Список pgsql-hackers
Richard Huxton wrote:
> Tatsuo Ishii wrote:
>> Hi,
>>
>> I have encountered a strange pg_ctl's behavior in 8.3.
>>
>> pg_ctl -w -o "-p 5432" start    <-- works
>> pg_ctl -w -o "-i" start    <-- works
>> pg_ctl -w -o "-p 5432 -i" start    <-- doesn't work
>>
>> In the last case, even postmaster starts successfully, pg_ctl keeps
>> trying to make sure that postmaster actually started and continues to
>> print "...".
> 
> It's not getting confused and thinking the port is "5432 -i" is it? I 
> tried "-i -p 5432" and that seemed to work.

Hmm - that does seem to be the case. I added a line to print "connstr" 
along with the "."  waiting for server to start....dbname=postgres port=5483  -i  connect_timeout=5.

The code looks fine to my uneducated eye though (bin/pg_ctl/pg_ctl.c 
test_postmaster_connection starting at line 412. I think the issue must 
be at lines 425..443)

--   Richard Huxton  Archonet Ltd


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: strange pg_ctl's behavior
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: strange pg_ctl's behavior