Re: Improve lseek scalability v3

Поиск
Список
Период
Сортировка
Искать
От
Stephen Frost
Тема
Re: Improve lseek scalability v3
Дата
Msg-id
20110919123100.GJ12765@tamriel.snowman.net
Ответ на
Список
Дерево обсуждения
Re: Improve lseek scalability v3 Alvaro Herrera <alvherre@commandprompt.com>
Re: Improve lseek scalability v3 Andi Kleen <andi@firstfloor.org>
* Benjamin LaHaise (bcrl@kvack.org) wrote:
> For such tables, can't Postgres track the size of the file internally?  I'm 
> assuming it's keeping file descriptors open on the tables it manages, in 
> which case when it writes to a file to extend it, the internally stored size 
> could be updated.  Not making a syscall at all would scale far better than 
> even a modified lseek() will perform.

We'd have to have it in shared memory and have a lock around it, it
wouldn't be cheap at all.
Thanks,		Stephen
В списке pgsql-hackers по дате отправления
От: Thom Brown
Дата:
Сообщение: Re: CUDA Sorting
От: Robert Haas
Дата:
FAQ