Changeset 49 for hw

Show
Ignore:
Timestamp:
09/26/07 13:09:44 (5 years ago)
Author:
cs186
Message:

never call box_distance for mindist calculations, it uses box centers not edges.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • hw/hw2/postgresql-8.2.4/src/backend/access/gist/gistproc.c

    r39 r49  
    128128          PG_RETURN_FLOAT8(d); 
    129129        } 
    130         /* 
    131          * if entry is not leaf, use box_mindist_internal, else use 
    132          * box_distance_internal 
    133          */ 
    134   if (GIST_LEAF(entry)) 
    135     d = box_distance_internal(DatumGetBoxP(entry->key), query); 
    136         else 
    137           d = box_mindist_internal(DatumGetBoxP(entry->key), query); 
     130        d = box_mindist_internal(DatumGetBoxP(entry->key), query); 
    138131        PG_RETURN_FLOAT8(d); 
    139132}