INSERT INTO pg_opclass (opcamid, opcname, opcintype, opcdefault, opckeytype)
VALUES (
(SELECT oid FROM pg_am WHERE amname = 'gist'),
- 'gist_GEOMETRY_ops',
+ 'gist_geometry_ops',
(SELECT oid FROM pg_type WHERE typname = 'geometry'),
true,
(SELECT oid FROM pg_type WHERE typname = 'box'));
FROM pg_opclass opcl, rt_ops_tmp c
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and c.oprname = '<<';
-- poly_overleft
FROM pg_opclass opcl, rt_ops_tmp c
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and c.oprname = '&<';
-- poly_overlap
FROM pg_opclass opcl, rt_ops_tmp c
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and c.oprname = '&&';
-- poly_overright
FROM pg_opclass opcl, rt_ops_tmp c
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and c.oprname = '&>';
-- poly_right
FROM pg_opclass opcl, rt_ops_tmp c
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and c.oprname = '>>';
-- poly_same
FROM pg_opclass opcl, rt_ops_tmp c
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and c.oprname = '~=';
-- poly_contains
FROM pg_opclass opcl, rt_ops_tmp c
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and c.oprname = '~';
-- poly_contained
FROM pg_opclass opcl, rt_ops_tmp c
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and c.oprname = '@';
DROP TABLE rt_ops_tmp;
FROM pg_opclass opcl, pg_proc pro
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and proname = 'ggeometry_consistent';
INSERT INTO pg_amproc (amopclaid, amprocnum, amproc)
FROM pg_opclass opcl, pg_proc pro
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and proname = 'gbox_union';
INSERT INTO pg_amproc (amopclaid, amprocnum, amproc)
FROM pg_opclass opcl, pg_proc pro
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and proname = 'ggeometry_compress';
INSERT INTO pg_amproc (amopclaid, amprocnum, amproc)
FROM pg_opclass opcl, pg_proc pro
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and proname = 'rtree_decompress';
INSERT INTO pg_amproc (amopclaid, amprocnum, amproc)
FROM pg_opclass opcl, pg_proc pro
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and proname = 'gbox_penalty';
INSERT INTO pg_amproc (amopclaid, amprocnum, amproc)
FROM pg_opclass opcl, pg_proc pro
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and proname = 'gbox_picksplit';
INSERT INTO pg_amproc (amopclaid, amprocnum, amproc)
FROM pg_opclass opcl, pg_proc pro
WHERE
opcamid = (SELECT oid FROM pg_am WHERE amname = 'gist')
- and opcname = 'gist_GEOMETRY_ops'
+ and opcname = 'gist_geometry_ops'
and proname = 'gbox_same';
END TRANSACTION;