forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commitbda5281
committed
Fix behavior of ~> (cube, int) operator
~> (cube, int) operator was especially designed for knn-gist search.However, it appears that knn-gist search can't work correctly with currentbehavior of this operator when dataset contains cubes of variabledimensionality. In this case, the same value of second operator argumentcan point to different dimension depending on dimensionality of particular cube.Such behavior is incompatible with gist indexing of cubes, and knn-gist doesn'twork correctly for it.This patch changes behavior of ~> (cube, int) operator by introducing dimensionnumbering where value of second argument unambiguously identifies number ofdimension. With new behavior, this operator can be correctly supported byknn-gist. Relevant changes to cube operator class are also included.Backpatch to v9.6 where operator was introduced.Since behavior of ~> (cube, int) operator is changed, depending entitiesmust be refreshed after upgrade. Such as, expression indexes using thisoperator must be reindexed, materialized views must be rebuilt, storedprocedures and client code must be revised to correctly use new behavior.That should be mentioned in release notes.Noticed by: Tomas VondraAuthor: Alexander KorotkovReviewed by: Tomas Vondra, Andrey BorodinDiscussion:https://www.postgresql.org/message-id/flat/a9657f6a-b497-36ff-e56-482a2c7e3292@2ndquadrant.com1 parent1226051 commitbda5281
File tree
7 files changed
+902
-528
lines changed- contrib/cube
- expected
- sql
- doc/src/sgml
7 files changed
+902
-528
lines changedLines changed: 95 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1368 | 1368 |
| |
1369 | 1369 |
| |
1370 | 1370 |
| |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
1371 | 1375 |
| |
| 1376 | + | |
1372 | 1377 |
| |
1373 |
| - | |
1374 |
| - | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
1375 | 1416 |
| |
1376 |
| - | |
1377 |
| - | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1378 | 1420 |
| |
1379 | 1421 |
| |
1380 | 1422 |
| |
| |||
1521 | 1563 |
| |
1522 | 1564 |
| |
1523 | 1565 |
| |
1524 |
| - | |
1525 |
| - | |
1526 |
| - | |
1527 |
| - | |
1528 |
| - | |
1529 |
| - | |
1530 |
| - | |
1531 |
| - | |
1532 |
| - | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
1533 | 1584 |
| |
1534 | 1585 |
| |
1535 | 1586 |
| |
1536 | 1587 |
| |
1537 | 1588 |
| |
1538 | 1589 |
| |
| 1590 | + | |
| 1591 | + | |
1539 | 1592 |
| |
1540 |
| - | |
| 1593 | + | |
| 1594 | + | |
1541 | 1595 |
| |
1542 | 1596 |
| |
1543 | 1597 |
| |
1544 | 1598 |
| |
1545 |
| - | |
| 1599 | + | |
1546 | 1600 |
| |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1547 | 1606 |
| |
1548 |
| - | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1549 | 1610 |
| |
1550 |
| - | |
1551 |
| - | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
1552 | 1617 |
| |
1553 | 1618 |
| |
1554 | 1619 |
| |
1555 |
| - | |
1556 |
| - | |
1557 |
| - | |
1558 |
| - | |
1559 |
| - | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
1560 | 1626 |
| |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
1561 | 1633 |
| |
1562 | 1634 |
| |
1563 | 1635 |
| |
|
0 commit comments
Comments
(0)