From 38c82ccf7b9cef5eb805b5c41a5cd2b02a23a270 Mon Sep 17 00:00:00 2001 From: Sergey Koposov Date: Thu, 9 May 2019 07:20:54 -0400 Subject: [PATCH] Fix the 1.6 1.7 script --- scripts/q3c--1.6.0--1.7.0.sql | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/scripts/q3c--1.6.0--1.7.0.sql b/scripts/q3c--1.6.0--1.7.0.sql index 316c0fd..5b03358 100644 --- a/scripts/q3c--1.6.0--1.7.0.sql +++ b/scripts/q3c--1.6.0--1.7.0.sql @@ -33,28 +33,6 @@ CREATE OPERATOR ==<<>>== ( JOIN = q3c_seljoin ); - - -- A dummy operator function (always returns true) -CREATE OR REPLACE FUNCTION pgq3c_oper(double precision, q3c_type) - RETURNS bool - AS 'MODULE_PATHNAME', 'pgq3c_oper' - LANGUAGE C STRICT IMMUTABLE COST 1000; - --- A selectivity function for the q3c operator -CREATE OR REPLACE FUNCTION pgq3c_sel(internal, oid, internal, int4) - RETURNS float8 - AS 'MODULE_PATHNAME', 'pgq3c_sel' - LANGUAGE C IMMUTABLE STRICT ; - - --- distance operator with correct selectivity -CREATE OPERATOR ==<<>>== ( - LEFTARG = double precision, RIGHTARG = q3c_type, - PROCEDURE = pgq3c_oper, - RESTRICT = pgq3c_sel, - JOIN = q3c_seljoin -); - DROP FUNCTION q3c_radial_query(bigint, double precision, double precision, double precision, double precision, double precision);