forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita194574
committed
> If read or write fails. Position will left the same. This
> situation is already tracked in File routines, but a little bit> incorrectly.> After small survey in Linux kernel code, I am not sure about> it. New patch set pos to unknown in the case of read/write> fails. And do lseek again.> Here is the full patch for this. This patch reduce amount of> lseek call ten ti mes for update statement and twenty times for> select statement. I tested joined up date and count(*) select> for table with rows > 170000 and 10 indices. I think this is> worse of trying. Before lseek calls account for more than 5% o> f time. Now they are 0.89 and 0.15 respectevly.>> Due to only one file modification patch should be applied in> src/backedn/stora ge/file/ dir.-- Sincerely Yours,Denis Perchine1 parent434adee commita194574
1 file changed
+26
-5
lines changedLines changed: 26 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| 98 | + | |
| 99 | + | |
98 | 100 |
| |
99 | 101 |
| |
100 | 102 |
| |
| |||
790 | 792 |
| |
791 | 793 |
| |
792 | 794 |
| |
| 795 | + | |
| 796 | + | |
793 | 797 |
| |
794 | 798 |
| |
795 | 799 |
| |
| |||
806 | 810 |
| |
807 | 811 |
| |
808 | 812 |
| |
809 |
| - | |
| 813 | + | |
810 | 814 |
| |
811 |
| - | |
812 | 815 |
| |
813 | 816 |
| |
| 817 | + | |
| 818 | + | |
814 | 819 |
| |
815 | 820 |
| |
816 | 821 |
| |
| |||
840 | 845 |
| |
841 | 846 |
| |
842 | 847 |
| |
843 |
| - | |
844 | 848 |
| |
845 |
| - | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
846 | 859 |
| |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
847 | 868 |
| |
848 | 869 |
| |
849 | 870 |
| |
|
0 commit comments
Comments
(0)