Modify the float4 datatype to be pass-by-val. Along the way, remove the last
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 18 Apr 2008 18:43:09 +0000 (18:43 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 18 Apr 2008 18:43:09 +0000 (18:43 +0000)
commita4e6aa03f6a11bebfa2294646702e36239c819fc
tree6b5f3febff0e2cc6ebfaabcc815f6df59e65aa3a
parent1097ee9f122bd93f9a919dc22e234cc1ead551d9
Modify the float4 datatype to be pass-by-val.  Along the way, remove the last
uses of the long-deprecated float32 in contrib/seg; the definitions themselves
are still there, but no longer used.  fmgr/README updated to match.

I added a CREATE FUNCTION to account for existing seg_center() code in seg.c
too, and some tests for it and the neighbor functions.  At the same time,
remove checks for NULL which are not needed (because the functions are declared
STRICT).

I had to do some adjustments to contrib's btree_gist too.  The choices for
representation there are not ideal for changing the underlying types :-(

Original patch by Zoltan Boszormenyi, with some adjustments by me.
20 files changed:
config/c-compiler.m4
configure
contrib/btree_gist/btree_utils_num.c
contrib/seg/data/test_seg.data
contrib/seg/expected/seg.out
contrib/seg/expected/seg_1.out
contrib/seg/seg.c
contrib/seg/seg.sql.in
contrib/seg/segdata.h
contrib/seg/sql/seg.sql
contrib/seg/uninstall_seg.sql
src/backend/bootstrap/bootstrap.c
src/backend/commands/analyze.c
src/backend/utils/fmgr/README
src/backend/utils/fmgr/fmgr.c
src/include/c.h
src/include/catalog/catversion.h
src/include/catalog/pg_attribute.h
src/include/catalog/pg_type.h
src/include/postgres.h