Add geometry/range functions to support BRIN inclusion

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 3b6db1f445e14bd189ebc99ce1e5535a1c624613
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2015-05-05T18:22:24Z
Releases: 9.5.0
Add geometry/range functions to support BRIN inclusion

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

Files