forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd680992
committed
Speed up TAP tests of pg_receivewal
This commit improves the speed of those tests by 25~30%, using somesimple ideas to reduce the amount of data written by pg_receivewal:- Use a segment size of 1MB. While reducing the amount of data zeroedby pg_receivewal for the new segments, this improves the code coveragewith a non-default segment size.- In the last test involving a slot's restart_lsn, generate a checkpointto advance the redo LSN and the WAL retained by the slot created,reducing the number of segments that need to be archived. This countsfor most of the gain.- Minimize the amount of data inserted into the dummy table.Reviewed-by: Ronan DunklauDiscussion:https://postgr.es/m/YXqYKAdVEqmyTltK@paquier.xyz1 parent3c17926 commitd680992
1 file changed
+13
-11
lines changedLines changed: 13 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 |
| - | |
| 53 | + | |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
59 |
| - | |
| 58 | + | |
60 | 59 |
| |
61 | 60 |
| |
62 | 61 |
| |
| |||
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
88 |
| - | |
89 |
| - | |
| 87 | + | |
90 | 88 |
| |
91 | 89 |
| |
92 | 90 |
| |
| |||
136 | 134 |
| |
137 | 135 |
| |
138 | 136 |
| |
139 |
| - | |
140 |
| - | |
| 137 | + | |
141 | 138 |
| |
142 | 139 |
| |
143 | 140 |
| |
| |||
167 | 164 |
| |
168 | 165 |
| |
169 | 166 |
| |
170 |
| - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
171 | 170 |
| |
172 | 171 |
| |
173 | 172 |
| |
| |||
181 | 180 |
| |
182 | 181 |
| |
183 | 182 |
| |
184 |
| - | |
185 |
| - | |
| 183 | + | |
186 | 184 |
| |
187 | 185 |
| |
188 | 186 |
| |
189 | 187 |
| |
190 | 188 |
| |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
191 | 193 |
| |
192 | 194 |
| |
193 | 195 |
| |
|
0 commit comments
Comments
(0)