Re: HAVE_FSEEKO for WIN32 - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: HAVE_FSEEKO for WIN32
Date
Msg-id 49647FCE.6010204@hagander.net
Whole thread Raw
In response to Re: HAVE_FSEEKO for WIN32  (Bruce Momjian <bruce@momjian.us>)
Responses Re: HAVE_FSEEKO for WIN32  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Bruce Momjian wrote:
> Andrew Dunstan wrote:
>> Cleaning up the parallel restore patch I came across a question I might 
>> have asked before, but one which in any case I worked around:
>>
>> Why do we carefully define fseeko() for WIN32 but then not define 
>> HAVE_FSEEKO, which makes doing the former pretty much pointless?
> 
> With Andrew, I have developed and applied the attached patch so MinGW
> handles fseeko() translation similar to Unix.
> 
> Someone will need to update MSVC to have similar behavior.

Which is what? :-)

It just needs to set HAVE_FSEEKO to 1 in pg_config.h?

//Magnus



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Latest version of Hot Standby patch
Next
From: Martin Pihlak
Date:
Subject: Re: reducing statistics write overhead