forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfc49e24
committed
Make WAL segment size configurable at initdb time.
For performance reasons a larger segment size than the default 16MBcan be useful. A larger segment size has two main benefits: Firstly,in setups using archiving, it makes it easier to write scripts thatcan keep up with higher amounts of WAL, secondly, the WAL has to bewritten and synced to disk less frequently.But at the same time large segment size are disadvantageous forsmaller databases. So far the segment size had to be configured atcompile time, often making it unrealistic to choose one fitting to aparticularly load. Therefore change it to a initdb time setting.This includes a breaking changes to the xlogreader.h API, which nowrequires the current segment size to be configured. For that andsimilar reasons a number of binaries had to be taught how to recognizethe current segment size.Author: Beena Emerson, editorialized by Andres FreundReviewed-By: Andres Freund, David Steele, Kuntal Ghosh, Michael Paquier, Peter Eisentraut, Robert Hass, Tushar AhujaDiscussion:https://postgr.es/m/CAOG9ApEAcQ--1ieKbhFzXSQPw_YLmepaa4hNdnY5+ZULpt81Mw@mail.gmail.com1 parent5ada1fc commitfc49e24
File tree
46 files changed
+897
-500
lines changed- contrib/pg_standby
- doc/src/sgml
- ref
- src
- backend
- access/transam
- bootstrap
- postmaster
- replication
- logical
- utils/misc
- bin
- initdb
- pg_basebackup
- pg_controldata
- pg_resetwal
- pg_rewind
- pg_test_fsync
- pg_upgrade
- pg_waldump
- include
- access
- catalog
- tools/msvc
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+897
-500
lines changedLines changed: 0 additions & 54 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
821 | 821 |
| |
822 | 822 |
| |
823 | 823 |
| |
824 |
| - | |
825 | 824 |
| |
826 | 825 |
| |
827 | 826 |
| |
| |||
1518 | 1517 |
| |
1519 | 1518 |
| |
1520 | 1519 |
| |
1521 |
| - | |
1522 |
| - | |
1523 | 1520 |
| |
1524 | 1521 |
| |
1525 | 1522 |
| |
| |||
3733 | 3730 |
| |
3734 | 3731 |
| |
3735 | 3732 |
| |
3736 |
| - | |
3737 |
| - | |
3738 |
| - | |
3739 |
| - | |
3740 |
| - | |
3741 |
| - | |
3742 |
| - | |
3743 |
| - | |
3744 |
| - | |
3745 |
| - | |
3746 |
| - | |
3747 |
| - | |
3748 |
| - | |
3749 |
| - | |
3750 |
| - | |
3751 |
| - | |
3752 |
| - | |
3753 |
| - | |
3754 |
| - | |
3755 |
| - | |
3756 |
| - | |
3757 |
| - | |
3758 |
| - | |
3759 |
| - | |
3760 |
| - | |
3761 |
| - | |
3762 |
| - | |
3763 |
| - | |
3764 |
| - | |
3765 |
| - | |
3766 |
| - | |
3767 |
| - | |
3768 |
| - | |
3769 |
| - | |
3770 |
| - | |
3771 |
| - | |
3772 |
| - | |
3773 |
| - | |
3774 |
| - | |
3775 |
| - | |
3776 |
| - | |
3777 |
| - | |
3778 |
| - | |
3779 |
| - | |
3780 |
| - | |
3781 |
| - | |
3782 |
| - | |
3783 |
| - | |
3784 |
| - | |
3785 |
| - | |
3786 |
| - | |
3787 | 3733 |
| |
3788 | 3734 |
| |
3789 | 3735 |
| |
|
Lines changed: 0 additions & 31 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
346 |
| - | |
347 |
| - | |
348 |
| - | |
349 |
| - | |
350 |
| - | |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 |
| - | |
373 |
| - | |
374 |
| - | |
375 |
| - | |
376 |
| - | |
377 | 346 |
| |
378 | 347 |
| |
379 | 348 |
| |
|
Lines changed: 101 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
| 40 | + | |
39 | 41 |
| |
40 | 42 |
| |
41 | 43 |
| |
| |||
100 | 102 |
| |
101 | 103 |
| |
102 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
103 | 109 |
| |
104 | 110 |
| |
105 | 111 |
| |
| |||
175 | 181 |
| |
176 | 182 |
| |
177 | 183 |
| |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
178 | 213 |
| |
179 | 214 |
| |
180 | 215 |
| |
| |||
184 | 219 |
| |
185 | 220 |
| |
186 | 221 |
| |
187 |
| - | |
| 222 | + | |
188 | 223 |
| |
189 | 224 |
| |
190 | 225 |
| |
| |||
204 | 239 |
| |
205 | 240 |
| |
206 | 241 |
| |
207 |
| - | |
| 242 | + | |
208 | 243 |
| |
209 | 244 |
| |
210 | 245 |
| |
| |||
218 | 253 |
| |
219 | 254 |
| |
220 | 255 |
| |
221 |
| - | |
222 |
| - | |
223 | 256 |
| |
224 | 257 |
| |
225 | 258 |
| |
| |||
315 | 348 |
| |
316 | 349 |
| |
317 | 350 |
| |
| 351 | + | |
318 | 352 |
| |
319 | 353 |
| |
320 | 354 |
| |
| |||
336 | 370 |
| |
337 | 371 |
| |
338 | 372 |
| |
339 |
| - | |
340 |
| - | |
| 373 | + | |
| 374 | + | |
341 | 375 |
| |
342 | 376 |
| |
343 | 377 |
| |
344 |
| - | |
| 378 | + | |
345 | 379 |
| |
346 | 380 |
| |
347 | 381 |
| |
| |||
364 | 398 |
| |
365 | 399 |
| |
366 | 400 |
| |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
367 | 461 |
| |
368 | 462 |
| |
369 | 463 |
| |
| |||
708 | 802 |
| |
709 | 803 |
| |
710 | 804 |
| |
711 |
| - | |
712 |
| - | |
713 | 805 |
| |
714 | 806 |
| |
715 | 807 |
| |
| |||
721 | 813 |
| |
722 | 814 |
| |
723 | 815 |
| |
724 |
| - | |
725 |
| - | |
726 |
| - | |
727 |
| - | |
728 |
| - | |
729 | 816 |
| |
730 | 817 |
| |
731 | 818 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
562 | 562 |
| |
563 | 563 |
| |
564 | 564 |
| |
565 |
| - | |
| 565 | + | |
566 | 566 |
| |
567 | 567 |
| |
568 | 568 |
| |
|
Lines changed: 0 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1058 | 1058 |
| |
1059 | 1059 |
| |
1060 | 1060 |
| |
1061 |
| - | |
1062 |
| - | |
1063 |
| - | |
1064 |
| - | |
1065 |
| - | |
1066 |
| - | |
1067 |
| - | |
1068 |
| - | |
1069 |
| - | |
1070 |
| - | |
1071 |
| - | |
1072 |
| - | |
1073 |
| - | |
1074 |
| - | |
1075 | 1061 |
| |
1076 | 1062 |
| |
1077 | 1063 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
319 | 334 |
| |
320 | 335 |
| |
321 | 336 |
| |
|
Lines changed: 6 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
752 | 752 |
| |
753 | 753 |
| |
754 | 754 |
| |
755 |
| - | |
756 |
| - | |
757 |
| - | |
758 |
| - | |
759 |
| - | |
760 |
| - | |
761 |
| - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
762 | 761 |
| |
763 | 762 |
| |
764 | 763 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1299 | 1299 |
| |
1300 | 1300 |
| |
1301 | 1301 |
| |
1302 |
| - | |
| 1302 | + | |
| 1303 | + | |
1303 | 1304 |
| |
1304 | 1305 |
| |
1305 | 1306 |
| |
|
0 commit comments
Comments
(0)