]> granicus.if.org Git - postgresql/commit
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)
commit7861d72ea204ef4085861f79f9c1749597160f72
treed778614447739d8388ed9726b48422e623868571
parentb8e5581d762acceda22dd7347ed43d2e013a6df1
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