forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit54562c9
committed
Improve Asserts checking relation matching in parallel scans.
table_beginscan_parallel and index_beginscan_parallel containAsserts checking that the relation a worker will use ina parallel scan is the same one the leader intended. However,they were checking for relation OID match, which was not strongenough to detect the mismatch problem fixed in126ec0b.What would be strong enough is to compare relfilenodes instead.Arguably, that's a saner definition anyway, since a scan surelyoperates on a physical relation not a logical one. Hence,store and compare RelFileLocators not relation OIDs. Alsoensure that index_beginscan_parallel checks the index identitynot just the table identity.Discussion:https://postgr.es/m/2127254.1726789524@sss.pgh.pa.us1 parentafb03e2 commit54562c9
3 files changed
+11
-8
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
500 | 500 |
| |
501 | 501 |
| |
502 | 502 |
| |
503 |
| - | |
504 |
| - | |
| 503 | + | |
| 504 | + | |
505 | 505 |
| |
506 | 506 |
| |
507 | 507 |
| |
| |||
544 | 544 |
| |
545 | 545 |
| |
546 | 546 |
| |
547 |
| - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
548 | 550 |
| |
549 | 551 |
| |
550 | 552 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
171 |
| - | |
| 171 | + | |
172 | 172 |
| |
173 | 173 |
| |
174 | 174 |
| |
| |||
389 | 389 |
| |
390 | 390 |
| |
391 | 391 |
| |
392 |
| - | |
| 392 | + | |
393 | 393 |
| |
394 | 394 |
| |
395 | 395 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| |||
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
65 |
| - | |
| 66 | + | |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
| |||
169 | 170 |
| |
170 | 171 |
| |
171 | 172 |
| |
172 |
| - | |
173 |
| - | |
| 173 | + | |
| 174 | + | |
174 | 175 |
| |
175 | 176 |
| |
176 | 177 |
| |
|
0 commit comments
Comments
(0)