Update contrib/seg for new scalarlesel/scalargesel selectivity functions.

I somehow missed this module in commit 7d08ce286.
This commit is contained in:
Tom Lane 2017-09-13 11:54:55 -04:00
parent 7d08ce286c
commit 44ba292064
3 changed files with 17 additions and 2 deletions

View File

@ -4,7 +4,8 @@ MODULE_big = seg
OBJS = seg.o segparse.o $(WIN32RES)
EXTENSION = seg
DATA = seg--1.1.sql seg--1.0--1.1.sql seg--unpackaged--1.0.sql
DATA = seg--1.1.sql seg--1.1--1.2.sql \
seg--1.0--1.1.sql seg--unpackaged--1.0.sql
PGFILEDESC = "seg - line segment data type"
REGRESS = seg

View File

@ -0,0 +1,14 @@
/* contrib/seg/seg--1.1--1.2.sql */
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION seg UPDATE TO '1.2'" to load this file. \quit
ALTER OPERATOR <= (seg, seg) SET (
RESTRICT = scalarlesel,
JOIN = scalarlejoinsel
);
ALTER OPERATOR >= (seg, seg) SET (
RESTRICT = scalargesel,
JOIN = scalargejoinsel
);

View File

@ -1,5 +1,5 @@
# seg extension
comment = 'data type for representing line segments or floating-point intervals'
default_version = '1.1'
default_version = '1.2'
module_pathname = '$libdir/seg'
relocatable = true