forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc6bc655
committed
Error out if SKIP LOCKED and WITH TIES are both specified
Both bugs #16676[1] and #17141[2] illustrate that the combination ofSKIP LOCKED and FETCH FIRST WITH TIES break expectations when it comesto rows returned to other sessions accessing the same row. Since thissituation is detectable from the syntax and hard to fix otherwise,forbid for now, with the potential to fix in the future.[1]https://postgr.es/m/16676-fd62c3c835880da6@postgresql.org[2]https://postgr.es/m/17141-913d78b9675aac8e@postgresql.orgBackpatch-through: 13, where WITH TIES was introducedAuthor: David Christensen <david.christensen@crunchydata.com>Discussion:https://postgr.es/m/CAOxo6XLPccCKru3xPMaYDpa+AXyPeWFs+SskrrL+HKwDjJnLhg@mail.gmail.com1 parentd186d23 commitc6bc655
File tree
5 files changed
+29
-2
lines changed- doc/src/sgml/ref
- src
- backend
- commands
- parser
- test/regress
- expected
- sql
5 files changed
+29
-2
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1515 | 1515 |
| |
1516 | 1516 |
| |
1517 | 1517 |
| |
1518 |
| - | |
| 1518 | + | |
| 1519 | + | |
1519 | 1520 |
| |
1520 | 1521 |
| |
1521 | 1522 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 |
| - | |
| 188 | + | |
| 189 | + | |
189 | 190 |
| |
190 | 191 |
| |
191 | 192 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16816 | 16816 |
| |
16817 | 16817 |
| |
16818 | 16818 |
| |
| 16819 | + | |
| 16820 | + | |
| 16821 | + | |
| 16822 | + | |
| 16823 | + | |
| 16824 | + | |
| 16825 | + | |
| 16826 | + | |
| 16827 | + | |
| 16828 | + | |
| 16829 | + | |
| 16830 | + | |
| 16831 | + | |
| 16832 | + | |
| 16833 | + | |
16819 | 16834 |
| |
16820 | 16835 |
| |
16821 | 16836 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
619 | 619 |
| |
620 | 620 |
| |
621 | 621 |
| |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
622 | 627 |
| |
623 | 628 |
| |
624 | 629 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
176 | 181 |
| |
177 | 182 |
| |
178 | 183 |
| |
|
0 commit comments
Comments
(0)