forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3bfcccc
committed
During Hot Standby, fix drop database when sessions idle.
Previously we only cancelled sessions that were in-transaction.Simple fix is to just cancel all sessions without waiting. Doingit this way avoids complicating common code paths, which wouldnot be worth the trouble to cover this rare case.Problem report and fix by Andres Freund, edited somewhat by me1 parent87091cb commit3bfcccc
File tree
3 files changed
+48
-16
lines changed- src
- backend
- commands
- storage/ipc
- include/storage
3 files changed
+48
-16
lines changedLines changed: 19 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
1945 | 1945 |
| |
1946 | 1946 |
| |
1947 | 1947 |
| |
1948 |
| - | |
1949 |
| - | |
1950 | 1948 |
| |
1951 |
| - | |
1952 |
| - | |
1953 |
| - | |
1954 |
| - | |
1955 |
| - | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
1956 | 1958 |
| |
1957 |
| - | |
1958 |
| - | |
1959 |
| - | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
1960 | 1962 |
| |
1961 |
| - | |
1962 |
| - | |
1963 |
| - | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
1964 | 1969 |
| |
1965 | 1970 |
| |
1966 | 1971 |
| |
|
Lines changed: 27 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
1826 | 1826 |
| |
1827 | 1827 |
| |
1828 | 1828 |
| |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
1829 | 1855 |
| |
1830 | 1856 |
| |
1831 | 1857 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
|
0 commit comments
Comments
(0)