forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbf8a662
committed
Introduce a new GUC_REPORT setting "in_hot_standby".
Aside from being queriable via SHOW, this value is sent to the clientimmediately at session startup, and again later on if the server getspromoted to primary during the session. The immediate report will beused in an upcoming patch to avoid an extra round trip when trying toconnect to a primary server.Haribabu Kommi, Greg Nancarrow, Tom Lane; reviewed at various timesby Laurenz Albe, Takayuki Tsunakawa, Peter Smith.Discussion:https://postgr.es/m/CAF3+xM+8-ztOkaV9gHiJ3wfgENTq97QcjXQt+rbFQ6F7oNzt9A@mail.gmail.com1 parent47b2ed1 commitbf8a662
File tree
6 files changed
+91
-11
lines changed- doc/src/sgml
- src/backend/utils/misc
6 files changed
+91
-11
lines changedLines changed: 25 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9600 | 9600 |
| |
9601 | 9601 |
| |
9602 | 9602 |
| |
9603 |
| - | |
9604 |
| - | |
9605 |
| - | |
| 9603 | + | |
| 9604 | + | |
9606 | 9605 |
| |
9607 | 9606 |
| |
9608 | 9607 |
| |
9609 | 9608 |
| |
| 9609 | + | |
| 9610 | + | |
9610 | 9611 |
| |
9611 | 9612 |
| |
9612 | 9613 |
| |
| |||
9651 | 9652 |
| |
9652 | 9653 |
| |
9653 | 9654 |
| |
9654 |
| - | |
9655 |
| - | |
| 9655 | + | |
| 9656 | + | |
| 9657 | + | |
9656 | 9658 |
| |
9657 |
| - | |
| 9659 | + | |
9658 | 9660 |
| |
9659 | 9661 |
| |
9660 | 9662 |
| |
| |||
9695 | 9697 |
| |
9696 | 9698 |
| |
9697 | 9699 |
| |
| 9700 | + | |
| 9701 | + | |
| 9702 | + | |
| 9703 | + | |
| 9704 | + | |
| 9705 | + | |
| 9706 | + | |
| 9707 | + | |
| 9708 | + | |
| 9709 | + | |
| 9710 | + | |
| 9711 | + | |
| 9712 | + | |
| 9713 | + | |
| 9714 | + | |
| 9715 | + | |
| 9716 | + | |
9698 | 9717 |
| |
9699 | 9718 |
| |
9700 | 9719 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1859 | 1859 |
| |
1860 | 1860 |
| |
1861 | 1861 |
| |
1862 |
| - | |
1863 |
| - | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
1864 | 1867 |
| |
1865 | 1868 |
| |
1866 | 1869 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2150 | 2150 |
| |
2151 | 2151 |
| |
2152 | 2152 |
| |
| 2153 | + | |
2153 | 2154 |
| |
2154 | 2155 |
| |
2155 | 2156 |
| |
| |||
2162 | 2163 |
| |
2163 | 2164 |
| |
2164 | 2165 |
| |
2165 |
| - | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
2166 | 2170 |
| |
2167 | 2171 |
| |
2168 | 2172 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1278 | 1278 |
| |
1279 | 1279 |
| |
1280 | 1280 |
| |
| 1281 | + | |
1281 | 1282 |
| |
1282 | 1283 |
| |
1283 | 1284 |
| |
| |||
1290 | 1291 |
| |
1291 | 1292 |
| |
1292 | 1293 |
| |
1293 |
| - | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
1294 | 1298 |
| |
1295 | 1299 |
| |
1296 | 1300 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
|
Lines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
| 212 | + | |
212 | 213 |
| |
213 | 214 |
| |
214 | 215 |
| |
| |||
610 | 611 |
| |
611 | 612 |
| |
612 | 613 |
| |
| 614 | + | |
613 | 615 |
| |
614 | 616 |
| |
615 | 617 |
| |
| |||
1844 | 1846 |
| |
1845 | 1847 |
| |
1846 | 1848 |
| |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
1847 | 1860 |
| |
1848 | 1861 |
| |
1849 | 1862 |
| |
| |||
6248 | 6261 |
| |
6249 | 6262 |
| |
6250 | 6263 |
| |
| 6264 | + | |
| 6265 | + | |
| 6266 | + | |
| 6267 | + | |
| 6268 | + | |
| 6269 | + | |
| 6270 | + | |
| 6271 | + | |
6251 | 6272 |
| |
6252 | 6273 |
| |
6253 | 6274 |
| |
| |||
6280 | 6301 |
| |
6281 | 6302 |
| |
6282 | 6303 |
| |
| 6304 | + | |
| 6305 | + | |
| 6306 | + | |
| 6307 | + | |
| 6308 | + | |
| 6309 | + | |
| 6310 | + | |
| 6311 | + | |
| 6312 | + | |
| 6313 | + | |
| 6314 | + | |
| 6315 | + | |
| 6316 | + | |
| 6317 | + | |
| 6318 | + | |
| 6319 | + | |
| 6320 | + | |
6283 | 6321 |
| |
6284 | 6322 |
| |
6285 | 6323 |
| |
| |||
11773 | 11811 |
| |
11774 | 11812 |
| |
11775 | 11813 |
| |
| 11814 | + | |
| 11815 | + | |
| 11816 | + | |
| 11817 | + | |
| 11818 | + | |
| 11819 | + | |
| 11820 | + | |
| 11821 | + | |
| 11822 | + | |
| 11823 | + | |
| 11824 | + | |
| 11825 | + | |
11776 | 11826 |
| |
11777 | 11827 |
| |
11778 | 11828 |
| |
|
0 commit comments
Comments
(0)