diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-04-18 18:43:09 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-04-18 18:43:09 +0000 |
commit | 7861d72ea204ef4085861f79f9c1749597160f72 (patch) | |
tree | d778614447739d8388ed9726b48422e623868571 /src/backend/bootstrap/bootstrap.c | |
parent | b8e5581d762acceda22dd7347ed43d2e013a6df1 (diff) | |
download | postgresql-7861d72ea204ef4085861f79f9c1749597160f72.tar.gz postgresql-7861d72ea204ef4085861f79f9c1749597160f72.zip |
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.
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r-- | src/backend/bootstrap/bootstrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index dd70a8c807e..a5c013bd6c6 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.240 2008/03/26 21:10:37 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.241 2008/04/18 18:43:09 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -122,7 +122,7 @@ static const struct typinfo TypInfo[] = { F_INT2IN, F_INT2OUT}, {"int4", INT4OID, 0, 4, true, 'i', 'p', F_INT4IN, F_INT4OUT}, - {"float4", FLOAT4OID, 0, 4, false, 'i', 'p', + {"float4", FLOAT4OID, 0, 4, true, 'i', 'p', F_FLOAT4IN, F_FLOAT4OUT}, {"name", NAMEOID, CHAROID, NAMEDATALEN, false, 'i', 'p', F_NAMEIN, F_NAMEOUT}, |