Re: [COMMITTERS] pgsql: Fix one more cast for _open_osfhandle(). - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [COMMITTERS] pgsql: Fix one more cast for _open_osfhandle().
Date
Msg-id 7161.1263657846@sss.pgh.pa.us
Whole thread Raw
List 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 by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Testing with concurrent sessions
Next
From: Tom Lane
Date:
Subject: Re: Archive recovery crashes on win32 in HEAD - hot standby related?