{"kind": "opclass", "major": "18", "item": {"slug": "family-spgist-poly_ops", "name": "spgist/poly_ops (family)", "name_zh": "", "category": "SP-GiST families", "summary": "SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build.", "aliases": ["poly_ops", "spgist/poly_ops"], "content_hash": "03bd061614909ac543003acdf5b15960ace9905a964b33dd8dbb64a503c86569", "versions": {"11": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=11", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=11", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=11", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=11", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=11", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=11", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=11", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=11", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=11", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=11", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=11", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=11", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=11", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=11", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=11", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=11", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "11.22", "major": "11", "channel": "historical", "revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0", "source_sha256": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0", "manual_fingerprint": "99c9e45d34555f000789cb4e019492e838041c1f2f31d840f3051ff9d7ed9118", "catalog_fingerprint": "4f08eb8c7ac7d09abfbb29a172148a44b8fb72026616bb55a5f8f84db7a38785"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, {"url": "/docs/11/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 11 English manual: indexes-opclass.html", "sha256": "234c67ab5a33096697e1851c197c79ba0e872686c7909c2696716a102253c7bd"}, {"url": "/docs/11/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 11 English manual: catalog-pg-opfamily.html", "sha256": "bc70c6a938dcf14c212ff9139ff1436f8292305ae551f7af4432c2b034d84070"}, {"url": "/docs/11/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 11 English manual: catalog-pg-amop.html", "sha256": "c17d050a6f2d093de2c343242bcc4d446b936de1d2902727d3fa3b0697b44fd3"}, {"url": "/docs/11/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 11 English manual: catalog-pg-amproc.html", "sha256": "819e66cb86af033d3328a3602c65c861e9f2d2c519d1f42f37fdd7766e1fc31f"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 12 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "9b14399db20182736686fa527bac0792c28a7899c41ad818912c8e26ec19280c", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "12": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=12", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=12", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=12", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=12", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=12", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=12", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=12", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=12", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=12", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=12", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=12", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=12", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=12", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=12", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=12", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=12", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=12", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "12.22", "major": "12", "channel": "historical", "revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b", "source_sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b", "manual_fingerprint": "535df36baec2140f211303631c0a3f64e02d2673b9d34cb050d247997c94bd1e", "catalog_fingerprint": "1f423fd3c5fb61c039f8814116ce19dedbb2804bc864599818e88cbc4f5f284a"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, {"url": "/docs/12/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 12 English manual: indexes-opclass.html", "sha256": "bdd742eaf65ab7addb35aa56509afe244d63775521460a046bf76f50bc0389db"}, {"url": "/docs/12/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 12 English manual: catalog-pg-opfamily.html", "sha256": "75a570e54ddf195baf23b86b05e0409dabae1f98dd223f9ca028e70deb4f3435"}, {"url": "/docs/12/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 12 English manual: catalog-pg-amop.html", "sha256": "84b91a9d763b1fb2968cc8be226a0369d31a6acb2468eb56cfd0b8d2030d1b45"}, {"url": "/docs/12/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 12 English manual: catalog-pg-amproc.html", "sha256": "8fecd047164ac5772bb48770067c55ab89a810d2ee1686ed316738bc0c18e330"}, {"url": "/docs/12/spgist-builtin-opclasses.html", "path": "spgist-builtin-opclasses.html", "label": "PostgreSQL 12 English manual: spgist-builtin-opclasses.html", "sha256": "93118bfcfefde56df25637f355fbc4115179bd6e96f8d7ba0c6e447bf62e2d78"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}, {"title": "Specific manual guidance", "paragraphs": ["The quad_point_ops , kd_point_ops and poly_ops operator classes support the <-> ordering operator, which enables the k-nearest neighbor ( k-NN ) search over indexed point or polygon data sets."]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "13": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=13", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=13", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=13", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=13", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=13", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=13", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=13", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=13", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=13", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=13", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=13", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=13", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=13", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=13", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=13", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=13", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=13", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "historical", "revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6", "source_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6", "manual_fingerprint": "2bbea71f4723fc9e4e58cfdb28368763f999de2800d45ade748f7c7546dfb9d3", "catalog_fingerprint": "df58d29b226fbb90326087233d7970032abdec1352373270449eeee324f84a35"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, {"url": "/docs/13/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 13 English manual: indexes-opclass.html", "sha256": "37723d8b80464e32b69ead59eff6160555679eb963ab37c5c3a8a6cbae1b152b"}, {"url": "/docs/13/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 13 English manual: catalog-pg-opfamily.html", "sha256": "238c97d1b6b9532d52b4cd0cc25f2b48be0dc4f2909858a45553863e801a969d"}, {"url": "/docs/13/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 13 English manual: catalog-pg-amop.html", "sha256": "7a8e67f8dc59c305612c6d029fc8760c092f27203d5338c6db6c6d9b8aabc561"}, {"url": "/docs/13/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 13 English manual: catalog-pg-amproc.html", "sha256": "7304d151ac7c668be22d688c152e43989557f61455a75dc74f4660363e7ab9ef"}, {"url": "/docs/13/spgist-builtin-opclasses.html", "path": "spgist-builtin-opclasses.html", "label": "PostgreSQL 13 English manual: spgist-builtin-opclasses.html", "sha256": "a19a1304749bd20c653dc4e2cf749124a7c1fbf4d3388e02337539d192448dd0"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}, {"title": "Specific manual guidance", "paragraphs": ["The quad_point_ops , kd_point_ops and poly_ops operator classes support the <-> ordering operator, which enables the k-nearest neighbor ( k-NN ) search over indexed point or polygon data sets."]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "14": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=14", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=14", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=14", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=14", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=14", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=14", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=14", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=14", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=14", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=14", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=14", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=14", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=14", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=14", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=14", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=14", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=14", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897", "source_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897", "manual_fingerprint": "1d055c6dc55d4defe2b6e9d0f842a47005487b21025b67e51d06721d3c122f71", "catalog_fingerprint": "9e0116f26e5ce870719efb77ef7b73e30c7928f8af27cbe87fdea32efe3811ef"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, {"url": "/docs/14/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 14 English manual: indexes-opclass.html", "sha256": "b7e355fb7c1e6fe473dc70d4c7e73cd3aa9a11dddd2e32ece5e8effbdb910c0b"}, {"url": "/docs/14/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 14 English manual: catalog-pg-opfamily.html", "sha256": "8a0b55015a6e8f90326f0526570b3bbca00a06a3c1ca142b8324528b60112c4f"}, {"url": "/docs/14/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 14 English manual: catalog-pg-amop.html", "sha256": "402b87d7fb1a313b096ba5349a676ae38d507e2eb98739d6ed7f0681e0b9a9a4"}, {"url": "/docs/14/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 14 English manual: catalog-pg-amproc.html", "sha256": "5b918a7eba7592dc13a32a8fcbb7ca0a198d8f4d2b8a85b3c7befbc7705d44a1"}, {"url": "/docs/14/spgist-builtin-opclasses.html", "path": "spgist-builtin-opclasses.html", "label": "PostgreSQL 14 English manual: spgist-builtin-opclasses.html", "sha256": "4b65b4af3942910a32748f9616aa8853410d556a539153935fda047a41867f02"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}, {"title": "Specific manual guidance", "paragraphs": ["The quad_point_ops , kd_point_ops and poly_ops operator classes support the <-> ordering operator, which enables the k-nearest neighbor ( k-NN ) search over indexed point or polygon data sets."]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "15": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=15", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=15", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=15", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=15", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=15", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=15", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=15", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=15", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=15", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=15", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=15", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=15", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=15", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=15", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=15", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=15", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=15", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89", "source_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89", "manual_fingerprint": "f39c61e9facb5b9404c7d6d1cf494d83af0cc46146554a7fc40724eb882d24a9", "catalog_fingerprint": "1c332a5ccec7bfdd8ca19b55a0279b5bd6cb1dd5dcc6c5587a98a491a9b566a5"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, {"url": "/docs/15/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 15 English manual: indexes-opclass.html", "sha256": "57685c0a60cb570754be680551a6947556a03b6ff16a4a511483bdcac143c6da"}, {"url": "/docs/15/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 15 English manual: catalog-pg-opfamily.html", "sha256": "f64fe11b448841cb4016489062de017e275de583a429b06c1824f545835ef300"}, {"url": "/docs/15/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 15 English manual: catalog-pg-amop.html", "sha256": "53ced8770f19710869151ab02a9a6f0d97380981ca4bfe83752092bfb74a9e0c"}, {"url": "/docs/15/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 15 English manual: catalog-pg-amproc.html", "sha256": "cdcce97c140ef4b73e0abc870c6a7f0d8ebda9f31d4c02b3f5444f50828d7f37"}, {"url": "/docs/15/spgist-builtin-opclasses.html", "path": "spgist-builtin-opclasses.html", "label": "PostgreSQL 15 English manual: spgist-builtin-opclasses.html", "sha256": "310bd41a47574992e69748046a39f6c316012dc8cb29247fd5b493bcf795f19a"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}, {"title": "Specific manual guidance", "paragraphs": ["The quad_point_ops , kd_point_ops and poly_ops operator classes support the <-> ordering operator, which enables the k-nearest neighbor ( k-NN ) search over indexed point or polygon data sets."]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "16": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=16", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=16", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=16", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=16", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=16", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=16", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=16", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=16", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=16", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=16", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=16", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=16", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=16", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=16", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=16", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=16", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=16", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed", "source_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed", "manual_fingerprint": "846fb006e9d590387203c1c65f671240bc5c30604c4e3084cf572817aacc19d0", "catalog_fingerprint": "70797d889dd8aeed77ae81092f99ab380e1109b54b0b7ca6fbf400e0a2111a70"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, {"url": "/docs/16/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 16 English manual: indexes-opclass.html", "sha256": "a524c924c56d14615e7ea68aaaddd7c62abf7d153a0e291c191e0f4e962ffbae"}, {"url": "/docs/16/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 16 English manual: catalog-pg-opfamily.html", "sha256": "71b9139e78f463b6d1146ecc748e9142aedb70d82e003d27b43e95d9b6108b9d"}, {"url": "/docs/16/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 16 English manual: catalog-pg-amop.html", "sha256": "f580ac4a34d5f9d567834684e0c41b7df32a952e20a2fc11a9ce0964c2df7e9a"}, {"url": "/docs/16/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 16 English manual: catalog-pg-amproc.html", "sha256": "ce78e17af3e627c9f4a1b517d77b8eb2e071ba2e963f8b196bf9535ca98c388a"}, {"url": "/docs/16/spgist-builtin-opclasses.html", "path": "spgist-builtin-opclasses.html", "label": "PostgreSQL 16 English manual: spgist-builtin-opclasses.html", "sha256": "cd59776cb7f959a622b4f47d617b4e24b76ab3ecba8b3095138f124f5d16215f"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}, {"title": "Specific manual guidance", "paragraphs": ["The quad_point_ops , kd_point_ops and poly_ops operator classes support the <-> ordering operator, which enables the k-nearest neighbor ( k-NN ) search over indexed point or polygon data sets."]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "17": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=17", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=17", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=17", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=17", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=17", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=17", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=17", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=17", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=17", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=17", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=17", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=17", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=17", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=17", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=17", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=17", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=17", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979", "source_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979", "manual_fingerprint": "b55870f8e80e1114a92ac7bfc97f4a6fa0dee8e75935895252bb6e5b866cf187", "catalog_fingerprint": "e888e3474202df1c60a8e7b6bf9f2d83b3866a52d119521659b7a82787d3829d"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, {"url": "/docs/17/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 17 English manual: indexes-opclass.html", "sha256": "dcdeb2d461b79e5c679d29f2a6d3ad038c788ba5a6d094e63d17353352db3ef2"}, {"url": "/docs/17/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 17 English manual: catalog-pg-opfamily.html", "sha256": "f7825b4e69f5073f44322085111577a0747a214b367c599e87491f75bc2a05ef"}, {"url": "/docs/17/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 17 English manual: catalog-pg-amop.html", "sha256": "19b2fb110b348860f7fbcb6e0e0544e341f5645113c23f50920a54434d432359"}, {"url": "/docs/17/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 17 English manual: catalog-pg-amproc.html", "sha256": "c1e9a6c78cb61e434eba6e22547c50a677d0c414049fd515263bec770b16ff55"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "18": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=18", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=18", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=18", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=18", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=18", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=18", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=18", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=18", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=18", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=18", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=18", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=18", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=18", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=18", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=18", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=18", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "manual_fingerprint": "fefce9e478eb2afe5e17e869492bbedc67dce23d317f0a5257240113d6496ebc", "catalog_fingerprint": "deec62e0f0c649d9d0d058ddd0b16bf41afffd569c3fd73949ff0971ce5cabd6"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, {"url": "/docs/18/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 18 English manual: indexes-opclass.html", "sha256": "07de06abf3a2aff2a891a2789def434d9b76705e54d45ca5338dc13451ae2962"}, {"url": "/docs/18/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 18 English manual: catalog-pg-opfamily.html", "sha256": "d4a2b7c2bcb5350b0c1f0111b61e4566f46fd97f48802d3ced2421a7aea60b80"}, {"url": "/docs/18/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 18 English manual: catalog-pg-amop.html", "sha256": "e65b90ee78eaf4b4da97ce5b08b972cee2e2660b882ec107be22eca47201f7d1"}, {"url": "/docs/18/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 18 English manual: catalog-pg-amproc.html", "sha256": "0a09afbde0ba8da9899bf770b86d8301bee116057b16ebe7db0e4a7fca2e91c6"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "19": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=19", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=19", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=19", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=19", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=19", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=19", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=19", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=19", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=19", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=19", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=19", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=19", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=19", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=19", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=19", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=19", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=19", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19beta4/postgresql-19beta4.tar.bz2", "label": "19beta4", "major": "19", "channel": "preview", "revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86", "source_sha256": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86", "manual_fingerprint": "d1c30d7808d3ae2edc8773a0dd66f7beb5861e8939001e171c1908f7a09bb497", "catalog_fingerprint": "9af4323d0c8ed03d0e795331930bd14ce9bf6193c6b766c463b9f6ec0829409a"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v19beta4/postgresql-19beta4.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}, {"url": "/docs/19/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 19 English manual: indexes-opclass.html", "sha256": "eba382a4227a2865a52fb015c7aec0dbde33d3c24373e3f9ba11e1daeae8b89c"}, {"url": "/docs/19/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 19 English manual: catalog-pg-opfamily.html", "sha256": "a6c127afadd1d22dc5879d15563bf5c569ec30d70e06735b62b9b3611331e9c9"}, {"url": "/docs/19/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 19 English manual: catalog-pg-amop.html", "sha256": "711850fdde973fbaf16da94143a2de3b972bed7a3b8663bf80e4aeabaf2f43fe"}, {"url": "/docs/19/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 19 English manual: catalog-pg-amproc.html", "sha256": "156082a05f95005ad8fabba56d5880f15f3b194d5f378ffee29a77066c77de12"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "20": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=20", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=20", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=20", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=20", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=20", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=20", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=20", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=20", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=20", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=20", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=20", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=20", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=20", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=20", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=20", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=20", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=20", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "revision": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41", "source_sha256": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41", "manual_fingerprint": "48fb9e20e9e1454fe93d367e75b949833c82c1c52c2b69314dfffe1c464f3f39", "catalog_fingerprint": "cc1a474e972c8c342cf17f37e2884c56cc4b114cb59407b0180e99cdcfffa5c5", "source_snapshot_utc": "26-Sep-2026 20:22"}, "sources": [{"url": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}, {"url": "/docs/devel/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 20 English manual: indexes-opclass.html", "sha256": "11f438e25406337ef7c41690a7d47744980230c83ade5106803b49a7a09afb80"}, {"url": "/docs/devel/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 20 English manual: catalog-pg-opfamily.html", "sha256": "db450aacf33a42eeb9a61782615676cad4e5c5fe8a16d3106d494ca456d14a30"}, {"url": "/docs/devel/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 20 English manual: catalog-pg-amop.html", "sha256": "00fee8a631088b687e2d880e4091791ca30f9c69fca888c51ece463d1b9e1e61"}, {"url": "/docs/devel/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 20 English manual: catalog-pg-amproc.html", "sha256": "5390831efcf71a10077be802ab320fbf5d6fc780fdadf679cd162f3a46a3c6d3"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}}}, "snapshot": {"facts": [{"label": "Object kind", "value": "Operator family"}, {"label": "Index AM", "value": "SP-GiST"}], "family": {"name": "poly_ops", "method": "spgist"}, "tables": [{"key": "operators", "rows": [{"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c-polygon-polygon/?v=18", "text": "<<(polygon,polygon)"}, "strategy": "1", "description": "is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c-polygon-polygon/?v=18", "text": "&<(polygon,polygon)"}, "strategy": "2", "description": "overlaps or is left of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-2626-polygon-polygon/?v=18", "text": "&&(polygon,polygon)"}, "strategy": "3", "description": "overlaps", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263e-polygon-polygon/?v=18", "text": "&>(polygon,polygon)"}, "strategy": "4", "description": "overlaps or is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3e3e-polygon-polygon/?v=18", "text": ">>(polygon,polygon)"}, "strategy": "5", "description": "is right of", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7e3d-polygon-polygon/?v=18", "text": "~=(polygon,polygon)"}, "strategy": "6", "description": "same as", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-403e-polygon-polygon/?v=18", "text": "@>(polygon,polygon)"}, "strategy": "7", "description": "contains", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c40-polygon-polygon/?v=18", "text": "<@(polygon,polygon)"}, "strategy": "8", "description": "is contained by", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-263c7c-polygon-polygon/?v=18", "text": "&<|(polygon,polygon)"}, "strategy": "9", "description": "overlaps or is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-3c3c7c-polygon-polygon/?v=18", "text": "<<|(polygon,polygon)"}, "strategy": "10", "description": "is below", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c3e3e-polygon-polygon/?v=18", "text": "|>>(polygon,polygon)"}, "strategy": "11", "description": "is above", "sort_family": ""}, {"scope": "Family member", "purpose": "search", "operator": {"url": "/wiki/operator/op-7c263e-polygon-polygon/?v=18", "text": "|&>(polygon,polygon)"}, "strategy": "12", "description": "overlaps or is above", "sort_family": ""}, {"scope": "Family member", "purpose": "ordering", "operator": {"url": "/wiki/operator/op-3c2d3e-polygon-point/?v=18", "text": "<->(polygon,point)"}, "strategy": "15", "description": "distance between", "sort_family": "float_ops"}], "title": "Family operator strategies", "columns": [{"key": "operator", "label": "Operator overload"}, {"key": "strategy", "label": "Strategy"}, {"key": "purpose", "label": "Purpose"}, {"key": "sort_family", "label": "Ordering family"}, {"key": "scope", "label": "Membership scope"}, {"key": "description", "label": "Source description"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "void"}, {"number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "void"}, {"number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "void"}, {"number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "void"}, {"number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "bool"}, {"number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "right_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}, "result_type": "box"}], "title": "Family support functions", "columns": [{"key": "number", "label": "Support number"}, {"key": "left_type", "label": "Left type"}, {"key": "right_type", "label": "Right type"}, {"key": "function", "label": "Function signature"}, {"key": "result_type", "label": "Result type"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-spgist-poly_ops/?v=18", "text": "poly_ops"}, "default": "yes", "key_type": {"url": "/wiki/type/box/?v=18", "text": "box"}, "input_type": {"url": "/wiki/type/polygon/?v=18", "text": "polygon"}}], "title": "Classes in this family", "columns": [{"key": "class", "label": "Class"}, {"key": "input_type", "label": "Input type"}, {"key": "key_type", "label": "Key type"}, {"key": "default", "label": "Default"}]}], "aliases": ["poly_ops", "spgist/poly_ops"], "classes": [{"name": "poly_ops", "slug": "class-spgist-poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon", "source_oid": "", "family_slug": "family-spgist-poly_ops"}], "related": [{"url": "/wiki/indexam/spgist/?v=18", "label": "SP-GiST Index AM"}], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "manual_fingerprint": "fefce9e478eb2afe5e17e869492bbedc67dce23d317f0a5257240113d6496ebc", "catalog_fingerprint": "deec62e0f0c649d9d0d058ddd0b16bf41afffd569c3fd73949ff0971ce5cabd6"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, {"url": "/docs/18/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 18 English manual: indexes-opclass.html", "sha256": "07de06abf3a2aff2a891a2789def434d9b76705e54d45ca5338dc13451ae2962"}, {"url": "/docs/18/catalog-pg-opfamily.html", "path": "catalog-pg-opfamily.html", "label": "PostgreSQL 18 English manual: catalog-pg-opfamily.html", "sha256": "d4a2b7c2bcb5350b0c1f0111b61e4566f46fd97f48802d3ced2421a7aea60b80"}, {"url": "/docs/18/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 18 English manual: catalog-pg-amop.html", "sha256": "e65b90ee78eaf4b4da97ce5b08b972cee2e2660b882ec107be22eca47201f7d1"}, {"url": "/docs/18/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 18 English manual: catalog-pg-amproc.html", "sha256": "0a09afbde0ba8da9899bf770b86d8301bee116057b16ebe7db0e4a7fca2e91c6"}], "sections": [{"title": "Operator classes and families", "paragraphs": ["An index definition can specify an operator class for each column of an index.", "The operator class identifies the operators to be used by the index for that column. For example, a B-tree index on the type int4 would use the int4_ops class; this operator class includes comparison functions for values of type int4 . In practice the default operator class for the column's data type is usually sufficient. The main reason for having operator classes is that for some data types, there could be more than one meaningful index behavior. For example, we might want to sort a complex-number data type either by absolute value or by real part. We could do this by defining two operator classes for the data type and then selecting the proper class when making an index. The operator class determines the basic sort ordering (which can then be modified by adding sort options COLLATE , ASC / DESC and/or NULLS FIRST / NULLS LAST ).", "There are also some built-in operator classes besides the default ones:"]}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "description": "is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is left of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "description": "overlaps", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-2626-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "description": "is right of", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "description": "same as", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7e3d-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "description": "contains", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-403e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "description": "is contained by", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c40-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-263c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "description": "is below", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3c3c7c-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "description": "is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c3e3e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "description": "overlaps or is above", "family_slug": "family-spgist-poly_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-7c263e-polygon-polygon", "sort_family_slug": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "description": "distance between", "family_slug": "family-spgist-poly_ops", "result_type": "float8", "sort_family": "float_ops", "operator_slug": "op-3c2d3e-polygon-point", "sort_family_slug": "family-btree-float_ops"}], "signature": "spgist/poly_ops", "source_oid": "5008", "description": ["SP-GiST operator family containing 1 classes, 13 operator strategies and 6 support functions in this source build."], "comparison_data": {"kind": "family", "classes": [{"name": "poly_ops", "family": "poly_ops", "method": "spgist", "default": "t", "key_type": "box", "input_type": "polygon"}], "operators": [{"family": "poly_ops", "method": "spgist", "purpose": "ordering", "operator": "<->(polygon,point)", "strategy": "15", "left_type": "polygon", "right_type": "point", "sort_family": "float_ops"}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<(polygon,polygon)", "strategy": "1", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<<|(polygon,polygon)", "strategy": "10", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|>>(polygon,polygon)", "strategy": "11", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "|&>(polygon,polygon)", "strategy": "12", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<(polygon,polygon)", "strategy": "2", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&&(polygon,polygon)", "strategy": "3", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&>(polygon,polygon)", "strategy": "4", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": ">>(polygon,polygon)", "strategy": "5", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "~=(polygon,polygon)", "strategy": "6", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "@>(polygon,polygon)", "strategy": "7", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "<@(polygon,polygon)", "strategy": "8", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}, {"family": "poly_ops", "method": "spgist", "purpose": "search", "operator": "&<|(polygon,polygon)", "strategy": "9", "left_type": "polygon", "right_type": "polygon", "sort_family": ""}], "attributes": {"name": "poly_ops", "method": "spgist"}, "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "result_type": "box"}]}, "comparison_hash": "1b4ebac18867570d4d63b49fe92a6c8b672581dc77fcc00e5673489e5d9ba38b", "support_functions": [{"family": "poly_ops", "method": "spgist", "number": "1", "function": "spg_bbox_quad_config(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "2", "function": "spg_box_quad_choose(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "3", "function": "spg_box_quad_picksplit(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "4", "function": "spg_box_quad_inner_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "void"}, {"family": "poly_ops", "method": "spgist", "number": "5", "function": "spg_box_quad_leaf_consistent(internal,internal)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "bool"}, {"family": "poly_ops", "method": "spgist", "number": "6", "function": "spg_poly_quad_compress(polygon)", "left_type": "polygon", "right_type": "polygon", "family_slug": "family-spgist-poly_ops", "result_type": "box"}]}, "comparison": {"left": "11", "right": "12", "status": "changed", "diff": "--- PostgreSQL 11\n+++ PostgreSQL 12\n@@ -19,6 +19,16 @@\n       \"family\": \"poly_ops\",\n       \"left_type\": \"polygon\",\n       \"method\": \"spgist\",\n+      \"operator\": \"<->(polygon,point)\",\n+      \"purpose\": \"ordering\",\n+      \"right_type\": \"point\",\n+      \"sort_family\": \"float_ops\",\n+      \"strategy\": \"15\"\n+    },\n+    {\n+      \"family\": \"poly_ops\",\n+      \"left_type\": \"polygon\",\n+      \"method\": \"spgist\",\n       \"operator\": \"<<(polygon,polygon)\",\n       \"purpose\": \"search\",\n       \"right_type\": \"polygon\","}}