Re: pread() and pwrite()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pread() and pwrite()
Дата
Msg-id 29875.1532100897@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pread() and pwrite()  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: pread() and pwrite()
Re: pread() and pwrite()
Список pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> No objections, if you want to make the effort. But IMHO the lseek+read 
> fallback is good enough on Windows. Unless you were thinking that we 
> could then remove the !HAVE_PREAD fallback altogether. Are there any 
> other platforms out there that don't have pread/pwrite that we care about?

AFAICT, macOS has them as far back as we care about (prairiedog does).
HPUX 10.20 (gaur/pademelon) does not, so personally I'd like to keep
the lseek+read workaround.  Don't know about the oldest Solaris critters
we have in the buildfarm.  FreeBSD has had 'em at least since 4.0 (1994);
didn't check the other BSDen.

SUS v2 (POSIX 1997) does specify both functions, so we could insist on
their presence without breaking any of our own portability guidelines.
However, if we have to have some workaround anyway for Windows, it
seems like including an lseek+read code path is reasonable so that we
needn't retire those oldest buildfarm critters.

            regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [bug fix] Produce a crash dump before main() on Windows
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Faster str to int conversion (was Table with large number of intcolumns, very slow COPY FROM)