forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit06f5295
committed
Add single-item cache when looking at topmost XID of a subtrans XID
This change affects SubTransGetTopmostTransaction(), used to find thetopmost transaction ID of a given transaction ID. The cache is able tostore one value, so as we can save the backend from unnecessary lookupsat pg_subtrans/ on repetitive calls of this routine. There is a similarpractice in transam.c, for example.Author: Simon RiggsReviewed-by: Andrey Borodin, Julien RouhaudDiscussion:https://postgr.es/m/CANbhV-G8Co=yq4v4BkW7MJDqVt68K_8A48nAZ_+8UQS7LrwLEQ@mail.gmail.com1 parentfbfe691 commit06f5295
1 file changed
+18
-0
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 |
| |
58 | 66 |
| |
59 | 67 |
| |
| |||
155 | 163 |
| |
156 | 164 |
| |
157 | 165 |
| |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
158 | 173 |
| |
159 | 174 |
| |
160 | 175 |
| |
| |||
174 | 189 |
| |
175 | 190 |
| |
176 | 191 |
| |
| 192 | + | |
| 193 | + | |
| 194 | + | |
177 | 195 |
| |
178 | 196 |
| |
179 | 197 |
| |
|
0 commit comments
Comments
(0)