Changeset 3287

Show
Ignore:
Timestamp:
11/11/08 12:38:10 (4 years ago)
Author:
pramsey
Message:

PostgreSQL 8.4 support (#62)

Location:
branches/1.3
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/1.3/lwgeom/lwgeom_gist.c

    r3104 r3287  
    599599#endif 
    600600 
     601#if USE_VERSION >= 84 
     602        /* PostgreSQL 8.4 and later require the RECHECK flag to be set here, 
     603           rather than being supplied as part of the operator class definition */ 
     604        bool *recheck = (bool *) PG_GETARG_POINTER(4); 
     605 
     606        /* And since the index is lossy from conversion from float8 to float4, we must 
     607        recheck */ 
     608        *recheck = true; 
     609#endif 
     610 
    601611#ifdef PGIS_DEBUG_CALLS 
    602612        elog(NOTICE,"GIST: LWGEOM_gist_consistent called"); 
  • branches/1.3/lwgeom/lwpostgis.sql.in

    r3246 r3287  
    13061306#else 
    13071307 
    1308 -- 
    1309 -- Create opclass index bindings for PG>=73 
     1308#if USE_VERSION < 84  
     1309 
     1310-- 
     1311-- Create opclass index bindings for PG>=73 and PG<=83 
    13101312-- 
    13111313 
     
    13421344         
    13431345-- TODO: add btree binding... 
     1346 
     1347#else 
     1348 
     1349-- 
     1350-- Create opclass index bindings for PG>83  
     1351-- (No RECHECK since this is now handled as part of the GiST Access methods) 
     1352-- 
     1353 
     1354CREATE OPERATOR CLASS gist_geometry_ops 
     1355        DEFAULT FOR TYPE geometry USING gist AS 
     1356        STORAGE         box2d, 
     1357        OPERATOR        1        <<, 
     1358        OPERATOR        2        &<, 
     1359        OPERATOR        3        &&, 
     1360        OPERATOR        4        &>, 
     1361        OPERATOR        5        >>, 
     1362        OPERATOR        6        ~=, 
     1363        OPERATOR        7        ~, 
     1364        OPERATOR        8        @, 
     1365        OPERATOR        9        &<|, 
     1366        OPERATOR        10       <<|, 
     1367        OPERATOR        11       |>>, 
     1368        OPERATOR        12       |&>, 
     1369        FUNCTION        1        LWGEOM_gist_consistent (internal, geometry, int4), 
     1370        FUNCTION        2        LWGEOM_gist_union (bytea, internal), 
     1371        FUNCTION        3        LWGEOM_gist_compress (internal), 
     1372        FUNCTION        4        LWGEOM_gist_decompress (internal), 
     1373        FUNCTION        5        LWGEOM_gist_penalty (internal, internal, internal), 
     1374        FUNCTION        6        LWGEOM_gist_picksplit (internal, internal), 
     1375        FUNCTION        7        LWGEOM_gist_same (box2d, box2d, internal); 
     1376 
     1377#endif 
    13441378 
    13451379#endif 
  • branches/1.3/regress/run_test

    r2595 r3287  
    124124                | grep -v "^CREATE" \ 
    125125                | grep -v "^SET" \ 
     126                | grep -v "^LINE " \ 
     127                | grep -v "\^$" \ 
    126128                | sed 's/Infinity/inf/g;s/Inf/inf/g;s/1\.#INF/inf/g' \ 
    127129                | sed 's/[eE]\([+-]\)0\{1,\}\([0-9]\{1,\}\)/e\1\2/g' \