[HACKERS] signed logging format for pid in log_line_prefix?

Поиск
Список
Период
Сортировка
От Greg Stark
Тема [HACKERS] signed logging format for pid in log_line_prefix?
Дата
Msg-id CAM-w4HMCj9FD5hOB+mMb=9Ke1vstCcTwAYLKAo24e2P_ChGCXQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] signed logging format for pid in log_line_prefix?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [HACKERS] signed logging format for pid in log_line_prefix?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
Both the text and csv logging seem to use %d on for logging the server pid:

appendStringInfo(buf, "%d", MyProcPid);

Am I missing something or wouldn't this mean we print pids with large
values as negative numbers? Isn't that strange? Wouldn't we rather use
%u here?


-- 
greg



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] More replication race conditions
Следующее
От: Tom Lane
Дата:
Сообщение: [HACKERS] Missing SIZE_MAX