forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit08aed66
committed
Eat XIDs more efficiently in recovery TAP test.
The point of this loop is to insert 1000 rows into the test tableand consume 1000 XIDs. I can't see any good reason why it's usefulto launch 1000 psqls and 1000 backend processes to accomplish that.Pushing the looping into a plpgsql DO block shaves about 10 secondsoff the runtime of the src/test/recovery TAP tests on my machine;that's over 10% of the runtime of that test suite.It is, in fact, sufficiently more efficient that we now demonstrablyneed wait_slot_xmins() afterwards, or the slaves' xmins may not havemoved yet.1 parent1ae8536 commit08aed66
1 file changed
+18
-4
lines changedLines changed: 18 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 |
| - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
231 | 241 |
| |
232 | 242 |
| |
233 | 243 |
| |
| 244 | + | |
| 245 | + | |
234 | 246 |
| |
235 | 247 |
| |
236 | 248 |
| |
237 | 249 |
| |
238 | 250 |
| |
239 | 251 |
| |
| 252 | + | |
| 253 | + | |
240 | 254 |
| |
241 | 255 |
| |
242 | 256 |
| |
|
0 commit comments
Comments
(0)