forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit669c7d2
committed
Fix pg_upgrade's multixact handling (again)
We need to create the pg_multixact/offsets file deleted by pg_upgrademuch earlier than we originally were: it was in TrimMultiXact(), whichruns after we exit recovery, but it actually needs to run earlier thanthe first call to SetMultiXactIdLimit (before recovery), because thatroutine already wants to read the first offset segment.Per pg_upgrade trouble report from Jeff Janes.While at it, silence a compiler warning about a pointless assert that anunsigned variable was being tested non-negative. This was a signedconstant in Thomas Munro's patch which I changed to unsigned beforecommit. Pointed out by Andres Freund.1 parentda11409 commit669c7d2
1 file changed
+14
-10
lines changedLines changed: 14 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1970 | 1970 |
| |
1971 | 1971 |
| |
1972 | 1972 |
| |
1973 |
| - | |
1974 |
| - | |
1975 |
| - | |
1976 |
| - | |
1977 |
| - | |
1978 |
| - | |
1979 |
| - | |
1980 |
| - | |
1981 | 1973 |
| |
1982 | 1974 |
| |
1983 | 1975 |
| |
| |||
2118 | 2110 |
| |
2119 | 2111 |
| |
2120 | 2112 |
| |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
2121 | 2127 |
| |
2122 | 2128 |
| |
2123 | 2129 |
| |
| |||
2513 | 2519 |
| |
2514 | 2520 |
| |
2515 | 2521 |
| |
2516 |
| - | |
2517 |
| - | |
2518 | 2522 |
| |
2519 | 2523 |
| |
2520 | 2524 |
| |
|
0 commit comments
Comments
(0)