Re: [COMMITTERS] pgsql: Fix one more cast for _open_osfhandle().

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [COMMITTERS] pgsql: Fix one more cast for _open_osfhandle().
Дата
Msg-id 7161.1263657846@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> 2010/1/2 Tom Lane <tgl@sss.pgh.pa.us>:
>> If those are a problem then presumably syslogger_parseArgs needs work
>> too ... and I rather wonder where the value it's reading comes from.

> Well, it doesn't generate a warning..  It only did that when the cast
> was incorrect. Should we add it purely for consistency?

You're missing the point entirely: this isn't about suppressing a
warning, it's about that the code will fail outright if the pointer value
doesn't fit in 32 bits.  "int fd" is no good, and "atoi" is no good, and
I wonder what is being used to print the text string that the atoi gets
fed.
        regards, tom lane


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Testing with concurrent sessions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Archive recovery crashes on win32 in HEAD - hot standby related?