forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ba281c
committed
Flexible options for BASE_BACKUP.
Previously, BASE_BACKUP used an entirely hard-coded syntax, but that'shard to extend. Instead, adopt the same kind of syntax we've used forSQL commands such as VACUUM, ANALYZE, COPY, and EXPLAIN, where it'snot necessary for all of the option names to be parser keywords.In the new syntax, most of the options now take an optional Booleanargument. To match our practice in other in places, the options whichthe old syntax called NOWAIT and NOVERIFY_CHECKSUMS options are in thenew syntax called WAIT and VERIFY_CHECKUMS, and the default value isfalse. In the new syntax, the FAST option has been replaced by aCHECKSUM option whose value may be 'fast' or 'spread'.This commit does not remove support for the old syntax. It just addsthe new one as an additional option, and makes pg_basebackup preferthe new syntax when the server is new enough to support it.Patch by me, reviewed and tested by Fabien Coelho, Sergei Kornilov,Fujii Masao, and Tushar Ahuja.Discussion:http://postgr.es/m/CA+TgmobAczXDRO_Gr2euo_TxgzaH1JxbNxvFx=HYvBinefNH8Q@mail.gmail.comDiscussion:http://postgr.es/m/CA+TgmoZGwR=ZVWFeecncubEyPdwghnvfkkdBe9BLccLSiqdf9Q@mail.gmail.com1 parent6860198 commit0ba281c
File tree
6 files changed
+276
-83
lines changed- doc/src/sgml
- src
- backend/replication
- bin/pg_basebackup
6 files changed
+276
-83
lines changedLines changed: 41 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2517 | 2517 |
| |
2518 | 2518 |
| |
2519 | 2519 |
| |
2520 |
| - | |
| 2520 | + | |
2521 | 2521 |
| |
2522 | 2522 |
| |
2523 | 2523 |
| |
| |||
2540 | 2540 |
| |
2541 | 2541 |
| |
2542 | 2542 |
| |
2543 |
| - | |
| 2543 | + | |
2544 | 2544 |
| |
2545 | 2545 |
| |
2546 |
| - | |
2547 |
| - | |
2548 |
| - | |
2549 |
| - | |
2550 |
| - | |
2551 |
| - | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
2552 | 2553 |
| |
2553 | 2554 |
| |
2554 | 2555 |
| |
| 2556 | + | |
2555 | 2557 |
| |
2556 | 2558 |
| |
2557 | 2559 |
| |
2558 | 2560 |
| |
2559 | 2561 |
| |
2560 |
| - | |
| 2562 | + | |
2561 | 2563 |
| |
2562 | 2564 |
| |
2563 |
| - | |
| 2565 | + | |
| 2566 | + | |
2564 | 2567 |
| |
2565 | 2568 |
| |
2566 | 2569 |
| |
2567 | 2570 |
| |
2568 | 2571 |
| |
2569 |
| - | |
| 2572 | + | |
2570 | 2573 |
| |
2571 | 2574 |
| |
2572 |
| - | |
2573 |
| - | |
| 2575 | + | |
| 2576 | + | |
2574 | 2577 |
| |
2575 |
| - | |
| 2578 | + | |
2576 | 2579 |
| |
2577 | 2580 |
| |
2578 | 2581 |
| |
2579 | 2582 |
| |
2580 | 2583 |
| |
2581 |
| - | |
| 2584 | + | |
2582 | 2585 |
| |
2583 | 2586 |
| |
2584 |
| - | |
| 2587 | + | |
2585 | 2588 |
| |
2586 |
| - | |
2587 |
| - | |
2588 |
| - | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
2589 | 2592 |
| |
2590 | 2593 |
| |
2591 | 2594 |
| |
| |||
2605 | 2608 |
| |
2606 | 2609 |
| |
2607 | 2610 |
| |
2608 |
| - | |
| 2611 | + | |
2609 | 2612 |
| |
2610 | 2613 |
| |
2611 |
| - | |
2612 |
| - | |
| 2614 | + | |
| 2615 | + | |
2613 | 2616 |
| |
2614 | 2617 |
| |
2615 | 2618 |
| |
| 2619 | + | |
2616 | 2620 |
| |
2617 | 2621 |
| |
2618 | 2622 |
| |
2619 | 2623 |
| |
2620 | 2624 |
| |
2621 |
| - | |
| 2625 | + | |
2622 | 2626 |
| |
2623 | 2627 |
| |
2624 |
| - | |
2625 |
| - | |
2626 |
| - | |
| 2628 | + | |
| 2629 | + | |
2627 | 2630 |
| |
2628 | 2631 |
| |
2629 | 2632 |
| |
| |||
2708 | 2711 |
| |
2709 | 2712 |
| |
2710 | 2713 |
| |
| 2714 | + | |
2711 | 2715 |
| |
2712 | 2716 |
| |
2713 | 2717 |
| |
| |||
2788 | 2792 |
| |
2789 | 2793 |
| |
2790 | 2794 |
| |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
2791 | 2806 |
| |
2792 | 2807 |
| |
2793 | 2808 |
| |
|
Lines changed: 32 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| |||
764 | 765 |
| |
765 | 766 |
| |
766 | 767 |
| |
767 |
| - | |
| 768 | + | |
768 | 769 |
| |
769 | 770 |
| |
770 | 771 |
| |
| |||
787 | 788 |
| |
788 | 789 |
| |
789 | 790 |
| |
790 |
| - | |
| 791 | + | |
791 | 792 |
| |
792 | 793 |
| |
793 | 794 |
| |
| |||
796 | 797 |
| |
797 | 798 |
| |
798 | 799 |
| |
799 |
| - | |
| 800 | + | |
800 | 801 |
| |
801 | 802 |
| |
802 |
| - | |
| 803 | + | |
803 | 804 |
| |
804 |
| - | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
805 | 808 |
| |
806 | 809 |
| |
807 | 810 |
| |
808 |
| - | |
809 |
| - | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
810 | 821 |
| |
811 |
| - | |
| 822 | + | |
812 | 823 |
| |
813 | 824 |
| |
814 | 825 |
| |
815 | 826 |
| |
816 | 827 |
| |
817 |
| - | |
| 828 | + | |
818 | 829 |
| |
819 | 830 |
| |
820 | 831 |
| |
| |||
823 | 834 |
| |
824 | 835 |
| |
825 | 836 |
| |
826 |
| - | |
| 837 | + | |
827 | 838 |
| |
828 | 839 |
| |
829 | 840 |
| |
830 | 841 |
| |
831 |
| - | |
| 842 | + | |
832 | 843 |
| |
833 | 844 |
| |
834 | 845 |
| |
835 | 846 |
| |
836 | 847 |
| |
837 | 848 |
| |
838 |
| - | |
| 849 | + | |
839 | 850 |
| |
840 | 851 |
| |
841 | 852 |
| |
| |||
851 | 862 |
| |
852 | 863 |
| |
853 | 864 |
| |
854 |
| - | |
| 865 | + | |
855 | 866 |
| |
856 | 867 |
| |
857 |
| - | |
| 868 | + | |
858 | 869 |
| |
859 | 870 |
| |
860 | 871 |
| |
861 | 872 |
| |
862 | 873 |
| |
863 |
| - | |
| 874 | + | |
864 | 875 |
| |
865 | 876 |
| |
866 | 877 |
| |
867 | 878 |
| |
868 |
| - | |
| 879 | + | |
869 | 880 |
| |
870 | 881 |
| |
871 | 882 |
| |
| |||
890 | 901 |
| |
891 | 902 |
| |
892 | 903 |
| |
893 |
| - | |
| 904 | + | |
894 | 905 |
| |
895 | 906 |
| |
896 | 907 |
| |
| |||
905 | 916 |
| |
906 | 917 |
| |
907 | 918 |
| |
908 |
| - | |
909 |
| - | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
910 | 923 |
| |
911 | 924 |
| |
912 | 925 |
| |
|
0 commit comments
Comments
(0)