forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7154aa1
committed
Fix another minor page deletion buffer lock issue.
Avoid accessing the leaf page's top parent tuple without a buffer lockheld during the second phase of nbtree page deletion. The old approachwas safe, though only because VACUUM never drops its buffer pin (andbecause only VACUUM itself can modify a half-dead page). Even still, itseems like a good idea to be strict here. Tighten things up by copyingthe top parent page's block number to a local variable before releasingthe buffer lock on the leaf page -- not after.This is a follow-up to commitfa7ff64, which fixed a similar issue inthe first phase of nbtree page deletion.Update some related comments in passing.Discussion:https://postgr.es/m/CAH2-WzkLgyN3zBvRZ1pkNJThC=xi_0gpWRUb_45eexLH1+k2_Q@mail.gmail.com1 parentfa7ff64 commit7154aa1
1 file changed
+20
-13
lines changedLines changed: 20 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1951 | 1951 |
| |
1952 | 1952 |
| |
1953 | 1953 |
| |
| 1954 | + | |
1954 | 1955 |
| |
1955 | 1956 |
| |
1956 | 1957 |
| |
| |||
1965 | 1966 |
| |
1966 | 1967 |
| |
1967 | 1968 |
| |
1968 |
| - | |
1969 |
| - | |
| 1969 | + | |
1970 | 1970 |
| |
1971 |
| - | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
1972 | 1975 |
| |
1973 |
| - | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
1974 | 1981 |
| |
| 1982 | + | |
1975 | 1983 |
| |
1976 | 1984 |
| |
1977 |
| - | |
| 1985 | + | |
1978 | 1986 |
| |
1979 | 1987 |
| |
1980 | 1988 |
| |
1981 | 1989 |
| |
1982 | 1990 |
| |
| 1991 | + | |
1983 | 1992 |
| |
1984 | 1993 |
| |
1985 | 1994 |
| |
1986 | 1995 |
| |
1987 | 1996 |
| |
1988 | 1997 |
| |
1989 | 1998 |
| |
1990 |
| - | |
1991 |
| - | |
1992 |
| - | |
1993 |
| - | |
1994 |
| - | |
1995 |
| - | |
1996 |
| - | |
1997 |
| - | |
1998 | 1999 |
| |
1999 | 2000 |
| |
2000 | 2001 |
| |
| |||
2181 | 2182 |
| |
2182 | 2183 |
| |
2183 | 2184 |
| |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
2184 | 2191 |
| |
2185 | 2192 |
| |
2186 | 2193 |
| |
|
0 commit comments
Comments
(0)