forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite532b1d
committed
Fix power() for infinity inputs some more.
Buildfarm results for commitdecbe2b show that AIX and illumoshave non-POSIX-compliant pow() functions, as do ancient NetBSDand HPUX releases. While it's dubious how much we should careabout the latter two platforms, the former two are probably enoughreason to put in manual handling of infinite-input cases. Hence,do so, and clean up the post-pow() error handling to reflect itsnow-more-limited scope. (Notably, while we no longer expect toever see EDOM from pow(), report it as a domain error if we do.The former coding had the net effect of expensively converting theerror to ERANGE, which seems highly questionable: if pow() wantedto report ERANGE, it would have done so.)Patch by me; thanks to Michael Paquier for review.Discussion:https://postgr.es/m/E1jkU7H-00024V-NZ@gemulon.postgresql.org1 parent7a3543c commite532b1d
File tree
3 files changed
+94
-23
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+94
-23
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1540 | 1540 |
| |
1541 | 1541 |
| |
1542 | 1542 |
| |
1543 |
| - | |
1544 |
| - | |
1545 |
| - | |
1546 |
| - | |
1547 |
| - | |
1548 |
| - | |
1549 |
| - | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
1550 | 1546 |
| |
1551 |
| - | |
1552 |
| - | |
1553 |
| - | |
| 1547 | + | |
1554 | 1548 |
| |
1555 |
| - | |
1556 |
| - | |
1557 |
| - | |
1558 |
| - | |
1559 |
| - | |
1560 |
| - | |
1561 |
| - | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
1562 | 1567 |
| |
1563 |
| - | |
1564 |
| - | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
1565 | 1582 |
| |
1566 |
| - | |
1567 |
| - | |
1568 |
| - | |
1569 |
| - | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
1570 | 1638 |
| |
1571 | 1639 |
| |
1572 | 1640 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
525 | 525 |
| |
526 | 526 |
| |
527 | 527 |
| |
| 528 | + | |
| 529 | + | |
528 | 530 |
| |
529 | 531 |
| |
530 | 532 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| 147 | + | |
147 | 148 |
| |
148 | 149 |
| |
149 | 150 |
| |
|
0 commit comments
Comments
(0)