postgres=# --power(a dp, b dp) a raised to the power of b postgres=# select power(9.0, 3.0); power ---------------------- 729.0000000000000000 (1 row) postgres=#