Commit 8730618
committed
pg_ctl: Add idempotent option
This changes the behavior of the start and stop actions to exit
successfully if the server was already started or stopped.
This changes the default behavior of the start action: Before, if the
server was already running, it would print a message and succeed. Now,
that situation will result in an error. When running in idempotent
mode, no message is printed and pg_ctl exits successfully.
It was considered to just make the idempotent behavior the default and
only option, but pg_upgrade needs the old behavior.1 parent ba66752 commit 8730618
File tree
3 files changed
+46
-10
lines changed- contrib/start-scripts
- doc/src/sgml/ref
- src/bin/pg_ctl
3 files changed
+46
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
270 | 272 | | |
271 | 273 | | |
272 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
273 | 294 | | |
274 | 295 | | |
275 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
773 | 774 | | |
774 | 775 | | |
775 | 776 | | |
776 | | - | |
777 | | - | |
778 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
779 | 786 | | |
780 | 787 | | |
781 | 788 | | |
| |||
859 | 866 | | |
860 | 867 | | |
861 | 868 | | |
| 869 | + | |
| 870 | + | |
862 | 871 | | |
863 | 872 | | |
864 | 873 | | |
| |||
1763 | 1772 | | |
1764 | 1773 | | |
1765 | 1774 | | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
1769 | 1778 | | |
1770 | 1779 | | |
1771 | 1780 | | |
| |||
1798 | 1807 | | |
1799 | 1808 | | |
1800 | 1809 | | |
| 1810 | + | |
| 1811 | + | |
1801 | 1812 | | |
1802 | 1813 | | |
1803 | 1814 | | |
| |||
1980 | 1991 | | |
1981 | 1992 | | |
1982 | 1993 | | |
| 1994 | + | |
1983 | 1995 | | |
1984 | 1996 | | |
1985 | 1997 | | |
| |||
2045 | 2057 | | |
2046 | 2058 | | |
2047 | 2059 | | |
2048 | | - | |
| 2060 | + | |
2049 | 2061 | | |
2050 | 2062 | | |
2051 | 2063 | | |
| |||
2071 | 2083 | | |
2072 | 2084 | | |
2073 | 2085 | | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
2074 | 2089 | | |
2075 | 2090 | | |
2076 | 2091 | | |
| |||
0 commit comments