| От | Tom Lane |
|---|---|
| Тема | Re: pg_ctl and port number detection |
| Дата | |
| Msg-id | 4326.1292713345@sss.pgh.pa.us обсуждение |
| Ответ на | pg_ctl and port number detection (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: pg_ctl and port number detection
|
| Список | pgsql-hackers |
Bruce Momjian <bruce@momjian.us> writes:
> pg_ctl.c::test_postmaster_connection() has some fragile code that tries
> to detect the server port number by looking in the pg_ctl -o string,
It may be fragile, but it works; or at least I've not heard complaints
about it lately.
> I think a simpler solution would be to look in postmaster.pid:
> pg_ctl already knows the data directory. If the file is missing, the
> server is not running. If the file exists, the first number on the last
> line, divided by 1000, is the port number.
That's somewhere between fragile and outright wrong.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера