• Alvaro Herrera's avatar
    Add geometry/range functions to support BRIN inclusion · 3b6db1f4
    Alvaro Herrera authored
    This commit adds the following functions:
        box(point) -> box
        bound_box(box, box) -> box
        inet_same_family(inet, inet) -> bool
        inet_merge(inet, inet) -> cidr
        range_merge(anyrange, anyrange) -> anyrange
    
    The first of these is also used to implement a new assignment cast from
    point to box.
    
    These functions are the first part of a base to implement an "inclusion"
    operator class for BRIN, for multidimensional data types.
    
    Author: Emre Hasegeli
    Reviewed by: Andreas Karlsson
    3b6db1f4
geometry.sql 3.15 KB