Skip to content

Commit

Permalink
Fix the 1.6 1.7 script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Koposov authored May 9, 2019
1 parent 02ec427 commit 38c82cc
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions scripts/q3c--1.6.0--1.7.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 38c82cc

Please sign in to comment.