-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking: mathematical functions #8806
Comments
This issue has been open for 60 days with no activity. If you think it is still relevant today, and needs to be done in the near future, you can comment to update the status, or just manually remove the You can also confidently close this issue as not planned to keep our backlog clean. |
https://www.postgresql.org/docs/current/functions-math.html
Make sure to test special values:
-inf
,inf
,nan
for decimal / real / double, and-0
for real / double.proto ExprType 213, 214, 219, 221, 222, 233, 234, 245..=267, 401..=419
Cast
Polymorphic
+
/-
for smallint / int / bigint / decimal / real / double@
/abs
for smallint / int / bigint / decimal / real / double+
/-
//
/*
for various combinations%
/mod
for smallint / int / bigint / decimalgcd
/lcm
for int / bigint / decimal~
/&
/|
/#
for smallint / int / bigint<<
/>>
for lhs smallint / int / bigintFormatting
to_char
/to_number
in Tracking: string and bytea functions #8831For decimal and double
round
/trunc
/ceil
/ceiling
/floor
sign
function #8900sqrt
function #8899exp
/ln
/log
/log10
(missing decimal /ln
/log
/log10
) #8903^
/pow
/power
Implementexp
/pow
function #7725width_bucket(operand, low, high, count)
For decimal
factorial(bigint)
-> decimaldiv(decimal, decimal)
-> decimallog(decimal, decimal)
-> decimal supportlog(b decimal, x decimal)
function which is the logarithm to baseb
#13150round(decimal, int)
-> decimaltrunc(decimal, int)
-> decimalmin_scale(decimal)
-> intscale(decimal)
-> inttrim_scale(decimal)
-> decimalFor double
||/
/cbrt
degrees
/radians
#8901pi
sin
/cos
/tan
/cot
/asin
/acos
/atan
/atan2
sind
/cosd
/tand
/cotd
/asind
/acosd
/atand
/atan2d
#9678Aggregate Functions
sum
avg
bit_and
/bit_or
/bit_xor
for smallint / int / bigint #9281covar_pop
/covar_samp
corr
regr_avgx
/regr_avgy
/regr_count
/regr_intercept
/regr_r2
/regr_slope
/regr_sxx
/regr_sxy
/regr_syy
Set Returning Functions
generate_series(start, stop [, step])
for int / bigint / numeric bug(frontent):generate_series
not compatible with PSQL #8826Impure
random
/setseed
The text was updated successfully, but these errors were encountered: