forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitff9e1e7
committed
Add option force_initdb to PostgreSQL::Test::Cluster:init()
This option is useful to bypass the default behavior of init() whichwould create the data folder of a new cluster by copying it from atemplate previously initdb'd, if any. Copying the data folder is muchcheaper than running initdb, but some tests may want to force that. Forexample, one scenario of pg_combinebackup updated in this commit needs adifferent system ID for two nodes.Previously, this could only be achieved by unsetting$ENV{'INITDB_TEMPLATE'}, which could become a problem in complex nodesetups by making tests less efficient.Author: Amul SulReviewed-by: Robert Haas, Michael PaquierDiscussion:https://postgr.es/m/Zc1tX9lLonLGu6oH@paquier.xyz1 parent75bcba6 commitff9e1e7
File tree
2 files changed
+18
-17
lines changed- src
- bin/pg_combinebackup/t
- test/perl/PostgreSQL/Test
2 files changed
+18
-17
lines changedLines changed: 6 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
33 | 27 |
| |
34 | 28 |
| |
35 | 29 |
| |
|
Lines changed: 12 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
503 | 503 |
| |
504 | 504 |
| |
505 | 505 |
| |
| 506 | + | |
| 507 | + | |
| 508 | + | |
506 | 509 |
| |
507 | 510 |
| |
508 | 511 |
| |
| |||
518 | 521 |
| |
519 | 522 |
| |
520 | 523 |
| |
| 524 | + | |
521 | 525 |
| |
522 | 526 |
| |
523 | 527 |
| |
| |||
529 | 533 |
| |
530 | 534 |
| |
531 | 535 |
| |
532 |
| - | |
533 |
| - | |
534 |
| - | |
535 |
| - | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
536 | 541 |
| |
537 | 542 |
| |
538 | 543 |
| |
539 |
| - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
540 | 547 |
| |
541 | 548 |
| |
542 | 549 |
| |
|
0 commit comments
Comments
(0)