PostgreSQL BugTool Submission

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема PostgreSQL BugTool Submission
Дата
Msg-id 200008240449.e7O4n3603230@hub.org
обсуждение исходный текст
Ответы Re: PostgreSQL BugTool Submission  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Doug Mitchell (pgsql@dougmitchell.com) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
Excessive seeking by backend

Long Description
The backend call lseek much more often than it has to.  The storage manage should not do either of the following:

1.  Repetetive seeks on the same location without any intervening read or write.

2.  Seeking to the next block to read when it is already the current
location.

These excessive system calls hurt performance by forcing a full context switch to kernel mode everytime.

Sample Code
I did a combination of sequential scans, index scans, and joins while watching the backend with strace under Linux 2.2.
The results are really rather surprising. 

No file was uploaded with this report

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL BugTool Submission
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL BugTool Submission