Re: Getting rid of some more lseek() calls

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Getting rid of some more lseek() calls
Дата
Msg-id 20200212054201.GE1464@paquier.xyz
обсуждение исходный текст
Ответ на Re: Getting rid of some more lseek() calls  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: Getting rid of some more lseek() calls  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
On Tue, Feb 11, 2020 at 06:04:09PM +1300, Thomas Munro wrote:
> lseek(SEEK_END) seems to be nearly twice as fast as fstat() if you
> just call it in a big loop, on Linux and FreeBSD (though I didn't
> investigate exactly why, mitigations etc, it certainly returns more
> stuff so there's that).

Interesting.  What of Windows?  We've had for some time now problem
with fetching the size of files larger than 4GB (COPY, dumps..).  I am
wondering if we could not take advantage of that for those cases:
https://www.postgresql.org/message-id/15858-9572469fd3b73263@postgresql.org
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: client-side fsync() error handling
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [Proposal] Add accumulated statistics for wait event