Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cfa929f

Browse files
committed
Fix incorrect implementation of log(x) for numeric, as well as
incorrect descriptions of a couple of log-related functions. I will not force an initdb for this, but log() on a numeric won't work until you do one...
1 parent 440b0fe commit cfa929f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/include/catalog/pg_proc.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: pg_proc.h,v 1.127 2000/03/14 23:06:44 thomas Exp $
10+
* $Id: pg_proc.h,v 1.128 2000/03/19 01:12:18 tgl Exp $
1111
*
1212
* NOTES
1313
* The script catalog/genbki.sh reads this file and generates .bki
@@ -484,7 +484,7 @@ DESCR("square root");
484484
DATA(insert OID = 231 ( dcbrt PGUID 11 f t t 1 f 701 "701" 100 0 0 100 dcbrt - ));
485485
DESCR("cube root");
486486
DATA(insert OID = 232 ( dpow PGUID 11 f t t 2 f 701 "701 701" 100 0 0 100 dpow - ));
487-
DESCR("exponential (x^y)");
487+
DESCR("exponentiation (x^y)");
488488
DATA(insert OID = 233 ( dexp PGUID 11 f t t 1 f 701 "701" 100 0 0 100 dexp - ));
489489
DESCR("natural exponential (e^x)");
490490
DATA(insert OID = 234 ( dlog1 PGUID 11 f t t 1 f 701 "701" 100 0 0 100 dlog1 - ));
@@ -1625,7 +1625,7 @@ DESCR("base 10 logarithm");
16251625
DATA(insert OID = 1340 ( log PGUID 11 f t t 1 f 701 "701" 100 0 0 100 dlog10 - ));
16261626
DESCR("base 10 logarithm");
16271627
DATA(insert OID = 1341 ( ln PGUID 11 f t t 1 f 701 "701" 100 0 0 100 dlog1 - ));
1628-
DESCR("base 10 logarithm");
1628+
DESCR("natural logarithm");
16291629
DATA(insert OID = 1342 ( round PGUID 11 f t t 1 f 701 "701" 100 0 0 100 dround - ));
16301630
DESCR("round to integral part");
16311631
DATA(insert OID = 1343 ( trunc PGUID 11 f t t 1 f 701 "701" 100 0 0 100 dtrunc - ));
@@ -2270,8 +2270,8 @@ DATA(insert OID = 1739 ( numeric_power PGUID 11 f t t 2 f 1700 "1700 1700" 100
22702270
DESCR("m raised to the power of n");
22712271
DATA(insert OID = 1740 ( numeric PGUID 11 f t t 1 f 1700 "23" 100 0 0 100 int4_numeric - ));
22722272
DESCR("(internal)");
2273-
DATA(insert OID = 1741 ( log PGUID 14 f t t 1 f 1700 "1700" 100 0 0 100 "select(10, $1)" - ));
2274-
DESCR("logarithm base m of n");
2273+
DATA(insert OID = 1741 ( log PGUID 14 f t t 1 f 1700 "1700" 100 0 0 100 "select log(10, $1)" - ));
2274+
DESCR("logarithm base 10 of n");
22752275
DATA(insert OID = 1742 ( numeric PGUID 11 f t t 1 f 1700 "700" 100 0 0 100 float4_numeric - ));
22762276
DESCR("(internal)");
22772277
DATA(insert OID = 1743 ( numeric PGUID 11 f t t 1 f 1700 "701" 100 0 0 100 float8_numeric - ));

0 commit comments

Comments
 (0)