- Notifications
You must be signed in to change notification settings - Fork5
Commit85a0781
committed
Use one transaction while reading postgres.bki, not one per line.
AFAICT, the only actual benefit of closing a bootstrap transactionis to reclaim transient memory. We can do that a lot more cheaplyby just doing a MemoryContextReset on a suitable context. Thisgets the runtime of the "bootstrap" phase of initdb down to thepoint where, at least by eyeball, it's quite negligible comparedto the rest of the phases. Per discussion with Andres Freund.Discussion:https://postgr.es/m/9244.1492106743@sss.pgh.pa.us1 parent2040bb4 commit85a0781
2 files changed
+16
-5
lines changedLines changed: 13 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
26 | 25 |
| |
27 | 26 |
| |
28 | 27 |
| |
| |||
49 | 48 |
| |
50 | 49 |
| |
51 | 50 |
| |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
| 67 | + | |
66 | 68 |
| |
67 | 69 |
| |
68 | 70 |
| |
69 |
| - | |
70 |
| - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 |
| |
72 | 79 |
| |
73 | 80 |
| |
74 | 81 |
| |
75 | 82 |
| |
76 | 83 |
| |
77 |
| - | |
78 |
| - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
79 | 87 |
| |
80 | 88 |
| |
81 | 89 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| |||
496 | 497 |
| |
497 | 498 |
| |
498 | 499 |
| |
| 500 | + | |
499 | 501 |
| |
| 502 | + | |
500 | 503 |
| |
501 | 504 |
| |
502 | 505 |
| |
|
0 commit comments
Comments
(0)