]> granicus.if.org Git - postgresql/blob - contrib/earthdistance/earthdistance.sql.in
Update /contrib for "autocommit TO 'on'".
[postgresql] / contrib / earthdistance / earthdistance.sql.in
1 -- Adjust this setting to control where the objects get created.
2 SET search_path = public;
3
4 SET autocommit TO 'on';
5
6 --------------- geo_distance
7
8 CREATE OR REPLACE FUNCTION geo_distance (point, point)
9 RETURNS float8
10 LANGUAGE 'C' IMMUTABLE STRICT AS 'MODULE_PATHNAME';
11
12 --------------- geo_distance as operator <@>
13
14 CREATE OPERATOR <@> (
15   LEFTARG = point,
16   RIGHTARG = point,
17   PROCEDURE = geo_distance,
18   COMMUTATOR = <@>
19 );