forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit79a3ab1

Etsuro Fujita
Fix yet another issue with step generation in partition pruning.
Commit1383874 fixed some issues with step generation in partitionpruning, but there was yet another one: get_steps_using_prefix() assumesthat clauses in the passed-in prefix list are sorted in ascending orderof their partition key numbers, but the caller failed to ensure this forrange partitioning, which led to an assertion failure in debug builds.Adjust the caller function to arrange the clauses in the prefix list inthe required order for range partitioning.Back-patch to v11, like the previous commit.Patch by me, reviewed by Amit Langote.Discussion:https://postgr.es/m/CAPmGK16jkXiFG0YqMbU66wte-oJTfW6D1HaNvQf%3D%2B5o9%3Dm55wQ%40mail.gmail.com1 parentbe9bdab commit79a3ab1
File tree
3 files changed
+96
-57
lines changed- src
- backend/partitioning
- test/regress
- expected
- sql
3 files changed
+96
-57
lines changedLines changed: 81 additions & 57 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1362 | 1362 |
| |
1363 | 1363 |
| |
1364 | 1364 |
| |
1365 |
| - | |
1366 | 1365 |
| |
1367 | 1366 |
| |
1368 | 1367 |
| |
| |||
1382 | 1381 |
| |
1383 | 1382 |
| |
1384 | 1383 |
| |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
1385 | 1387 |
| |
1386 | 1388 |
| |
1387 | 1389 |
| |
1388 | 1390 |
| |
| 1391 | + | |
| 1392 | + | |
1389 | 1393 |
| |
1390 | 1394 |
| |
1391 | 1395 |
| |
| |||
1410 | 1414 |
| |
1411 | 1415 |
| |
1412 | 1416 |
| |
1413 |
| - | |
1414 |
| - | |
1415 |
| - | |
1416 |
| - | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1417 | 1420 |
| |
1418 | 1421 |
| |
1419 |
| - | |
1420 |
| - | |
| 1422 | + | |
| 1423 | + | |
1421 | 1424 |
| |
1422 |
| - | |
| 1425 | + | |
1423 | 1426 |
| |
1424 |
| - | |
| 1427 | + | |
1425 | 1428 |
| |
1426 |
| - | |
1427 |
| - | |
1428 |
| - | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
1429 | 1434 |
| |
1430 |
| - | |
1431 |
| - | |
1432 |
| - | |
1433 |
| - | |
| 1435 | + | |
1434 | 1436 |
| |
1435 |
| - | |
1436 |
| - | |
1437 |
| - | |
1438 |
| - | |
1439 |
| - | |
1440 |
| - | |
1441 |
| - | |
1442 |
| - | |
1443 |
| - | |
1444 |
| - | |
1445 |
| - | |
1446 |
| - | |
1447 |
| - | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
1448 | 1445 |
| |
1449 |
| - | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
1450 | 1459 |
| |
1451 |
| - | |
1452 |
| - | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
1453 | 1472 |
| |
| 1473 | + | |
1454 | 1474 |
| |
1455 |
| - | |
1456 | 1475 |
| |
1457 |
| - | |
1458 |
| - | |
1459 |
| - | |
1460 |
| - | |
1461 |
| - | |
1462 |
| - | |
1463 |
| - | |
1464 |
| - | |
1465 |
| - | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
1466 | 1483 |
| |
1467 |
| - | |
1468 |
| - | |
1469 |
| - | |
1470 |
| - | |
1471 |
| - | |
| 1484 | + | |
1472 | 1485 |
| |
1473 |
| - | |
1474 |
| - | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
1475 | 1498 |
| |
| 1499 | + | |
1476 | 1500 |
| |
1477 |
| - | |
1478 | 1501 |
| |
1479 |
| - | |
1480 |
| - | |
1481 |
| - | |
1482 |
| - | |
1483 |
| - | |
1484 |
| - | |
1485 |
| - | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1486 | 1507 |
| |
1487 | 1508 |
| |
1488 | 1509 |
| |
| |||
2241 | 2262 |
| |
2242 | 2263 |
| |
2243 | 2264 |
| |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
2244 | 2268 |
| |
2245 | 2269 |
| |
2246 | 2270 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3711 | 3711 |
| |
3712 | 3712 |
| |
3713 | 3713 |
| |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
3714 | 3724 |
| |
3715 | 3725 |
| |
3716 | 3726 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1080 | 1080 |
| |
1081 | 1081 |
| |
1082 | 1082 |
| |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1083 | 1088 |
| |
1084 | 1089 |
| |
1085 | 1090 |
| |
|
0 commit comments
Comments
(0)