forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit24ace40
committed
Retry after buffer locking failure during SPGiST index creation.
The original coding thought this case was impossible, but it can happenif the bgwriter or checkpointer processes decide to write out an indexpage while creation is still proceeding, leading to a bogus "unexpectedspgdoinsert() failure" error. Problem reported by Jonathan S. Katz.Teodor Sigaev1 parentbffd1ce commit24ace40
2 files changed
+17
-7
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1946 | 1946 |
| |
1947 | 1947 |
| |
1948 | 1948 |
| |
1949 |
| - | |
1950 |
| - | |
1951 |
| - | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
1952 | 1955 |
| |
1953 | 1956 |
| |
1954 | 1957 |
| |
|
Lines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 |
| |
53 | 60 |
| |
54 | 61 |
| |
|
0 commit comments
Comments
(0)