From fc7fd50182f5fcec0d9c900ca8e6a48649ceb196 Mon Sep 17 00:00:00 2001
From: Neil Conway
Date: Fri, 23 Apr 2004 20:32:20 +0000
Subject: Add ceiling() as an alias for ceil(), and power() as an alias for
pow(). Regression tests and documentation have both been updated.
SQL2003 requires that both ceiling() and ceil() be present, so I have
documented both spellings. SQL2003 doesn't mention pow() as far as I
can see, so I decided to replace pow() with power() in the documentation:
there is little reason to encourage the continued usage of a function
that isn't compliant with the standard, given a standard-compliant
alternative.
RELEASE NOTES: should state that pow() is considered deprecated
(although I don't see the need to ever remove it.)
---
doc/src/sgml/func.sgml | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 139c81effc3..9042cd394e1 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1,5 +1,5 @@
@@ -587,6 +587,14 @@ PostgreSQL documentation
-42
+
+ ceiling(dp or numeric)
+ (same as input)
+ smallest integer not less than argument (alias for ceil)
+ ceiling(-95.3)
+ -95
+
+
degrees(dp)
dp
@@ -654,20 +662,20 @@ PostgreSQL documentation
- pow(a dp,
+ power(a dp,
b dp)
dp
a> raised to the power of b
- pow(9.0, 3.0)
+ power(9.0, 3.0)
729
- pow(a numeric,
+ power(a numeric,
b numeric)
numeric
a> raised to the power of b
- pow(9.0, 3.0)
+ power(9.0, 3.0)
729
--
cgit v1.2.3