log(b, x): Returns the base b logarithm of x
postgres=# postgres=# -- log(b, x): Returns the base b logarithm of x postgres=# select log(exp(1.0), 10.0) AS natural_log; natural_log -------------------- 2.3025850929940457 (1 row) postgres=#