From: | momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql-server/src backend/utils/adt/int.c backe ... |
Date: | 2003-12-01 21:52:38 |
Message-ID: | 20031201215238.5E6CBD1C9F0@svr1.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian(at)svr1(dot)postgresql(dot)org 03/12/01 17:52:38
Modified files:
src/backend/utils/adt: int.c int8.c numeric.c
src/include/catalog: pg_operator.h pg_proc.h
src/include/utils: builtins.h int8.h
src/test/regress/expected: create_operator.out
src/test/regress/sql: create_operator.sql
Log message:
Attached is a patch implementing factorial(), returning numeric. Points
to note:
1) arttype is numeric. I thought this was the best way of allowing
arbitarily large factorials, even though factorial(2^63) is a large
number. Happy to change to integers if this is overkill.
2) since we're accepting numeric arguments, the patch tests for floats.
If a numeric is passed with non-zero decimal portion, an error is raised
since (from memory) they are undefined.
Gavin Sherry
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-12-01 21:53:16 | pgsql-server/doc/src/sgml typeconv.sgml |
Previous Message | Tom Lane | 2003-12-01 20:35:05 | pgsql-server/doc/src/sgml Tag: REL7_4_STABLE d ... |