- Notifications
You must be signed in to change notification settings - Fork5
Commit32e8fc4
committed
Arrange to cache fmgr lookup information for an index's access method
routines in the index's relcache entry, instead of doing a fresh fmgr_infoon every index access. We were already doing this for the index's opclasssupport functions; not sure why we didn't think to do it for the AMfunctions too. This supersedes the former method of caching (only)amgettuple in indexscan scan descriptors; it's an improvement because thefunction lookup can be amortized across multiple statements instead ofbeing repeated for each statement. Even though lookup for builtinfunctions is pretty cheap, this seems to drop a percent or two off somesimple benchmarks.1 parentdd67cf3 commit32e8fc4
6 files changed
+118
-96
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 105 | | |
109 | 106 | | |
110 | 107 | | |
| |||
0 commit comments
Comments
(0)