{"kind": "opclass", "major": "18", "item": {"slug": "class-hash-oid8_ops", "name": "hash/oid8_ops (class)", "name_zh": "", "category": "Hash \u64cd\u4f5c\u7b26\u7c7b", "summary": "\u6240\u9009\u7248\u672c\u672a\u6536\u5f55\u6b64\u6761\u76ee\u3002", "aliases": ["oid8_ops", "hash/oid8_ops"], "content_hash": "efd5e8bb2672d5983b1312b7356b7d4b40f8a686049412d6c344cd1643485c8c", "versions": {"19": {"class": {"name": "oid8_ops", "family": "oid8_ops", "method": "hash", "default": "t", "key_type": "none", "input_type": "oid8"}, "facts": [{"label": "\u5bf9\u8c61\u79cd\u7c7b", "value": "\u64cd\u4f5c\u7b26\u7c7b"}, {"label": "\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5", "value": "Hash"}, {"label": "\u8f93\u5165\u7c7b\u578b", "value": "oid8"}, {"label": "\u5b58\u50a8\u952e\u7c7b\u578b", "value": "\u4e0e\u8f93\u5165\u7c7b\u578b\u76f8\u540c\uff08\u76ee\u5f55\u503c\u4e3a\u96f6\uff09"}, {"label": "\u9ed8\u8ba4\u64cd\u4f5c\u7b26\u7c7b", "value": "\u662f"}], "tables": [{"key": "operators", "rows": [{"scope": "\u64cd\u4f5c\u7b26\u7c7b\u8f93\u5165\u7c7b\u578b\u5bf9", "purpose": "\u641c\u7d22", "operator": {"url": "/wiki/operator/op-3d-oid8-oid8/?v=19", "text": "=(oid8,oid8)"}, "strategy": "1", "description": "\u7b49\u4e8e", "sort_family": ""}], "title": "\u5bb6\u65cf\u4e2d\u7684\u64cd\u4f5c\u7b26\u7b56\u7565", "columns": [{"key": "operator", "label": "\u64cd\u4f5c\u7b26\u91cd\u8f7d"}, {"key": "strategy", "label": "\u7b56\u7565"}, {"key": "purpose", "label": "\u7528\u9014"}, {"key": "sort_family", "label": "\u6392\u5e8f\u5bb6\u65cf"}, {"key": "scope", "label": "\u6210\u5458\u8303\u56f4"}, {"key": "description", "label": "\u6e90\u7801\u8bf4\u660e"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "hashoid8(oid8)", "left_type": {"url": "/wiki/type/oid8/?v=19", "text": "oid8"}, "right_type": {"url": "/wiki/type/oid8/?v=19", "text": "oid8"}, "result_type": "int4"}, {"number": "2", "function": "hashoid8extended(oid8,int8)", "left_type": {"url": "/wiki/type/oid8/?v=19", "text": "oid8"}, "right_type": {"url": "/wiki/type/oid8/?v=19", "text": "oid8"}, "result_type": "int8"}], "title": "\u5bb6\u65cf\u652f\u6301\u51fd\u6570", "columns": [{"key": "number", "label": "\u652f\u6301\u51fd\u6570\u7f16\u53f7"}, {"key": "left_type", "label": "\u5de6\u4fa7\u7c7b\u578b"}, {"key": "right_type", "label": "\u53f3\u4fa7\u7c7b\u578b"}, {"key": "function", "label": "\u51fd\u6570\u7b7e\u540d"}, {"key": "result_type", "label": "\u8fd4\u56de\u7c7b\u578b"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-hash-oid8_ops/?v=19", "text": "oid8_ops"}, "default": "\u662f", "key_type": "\u4e0e\u8f93\u5165\u7c7b\u578b\u76f8\u540c", "input_type": {"url": "/wiki/type/oid8/?v=19", "text": "oid8"}}], "title": "\u672c\u5bb6\u65cf\u7684\u64cd\u4f5c\u7b26\u7c7b", "columns": [{"key": "class", "label": "\u64cd\u4f5c\u7b26\u7c7b"}, {"key": "input_type", "label": "\u8f93\u5165\u7c7b\u578b"}, {"key": "key_type", "label": "\u952e\u7c7b\u578b"}, {"key": "default", "label": "\u9ed8\u8ba4\u503c"}]}], "aliases": ["oid8_ops", "hash/oid8_ops"], "classes": [{"name": "oid8_ops", "slug": "class-hash-oid8_ops", "family": "oid8_ops", "method": "hash", "default": "t", "key_type": "none", "input_type": "oid8", "source_oid": "", "family_slug": "family-hash-oid8_ops"}], "related": [{"url": "/wiki/indexam/hash/?v=19", "label": "Hash \u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5"}, {"url": "/wiki/opclass/family-hash-oid8_ops/?v=19", "label": "oid8_ops \u5bb6\u65cf"}, {"url": "/wiki/type/oid8/?v=19", "label": "oid8 \u6570\u636e\u7c7b\u578b"}], "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": "https://pg.center/docs/19/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 19 English manual: indexes-opclass.html", "sha256": "eba382a4227a2865a52fb015c7aec0dbde33d3c24373e3f9ba11e1daeae8b89c", "language": "en", "original_url": "/docs/19/indexes-opclass.html"}, {"url": "https://pg.center/docs/19/catalog-pg-opclass.html", "path": "catalog-pg-opclass.html", "label": "PostgreSQL 19 English manual: catalog-pg-opclass.html", "sha256": "e204d4682013f05c202b6a0df0b7b178ac74d17fceb8936cc97dc3d98e7d530b", "language": "en", "original_url": "/docs/19/catalog-pg-opclass.html"}, {"url": "https://pg.center/docs/19/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 19 English manual: catalog-pg-amop.html", "sha256": "711850fdde973fbaf16da94143a2de3b972bed7a3b8663bf80e4aeabaf2f43fe", "language": "en", "original_url": "/docs/19/catalog-pg-amop.html"}, {"url": "https://pg.center/docs/19/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 19 English manual: catalog-pg-amproc.html", "sha256": "156082a05f95005ad8fabba56d5880f15f3b194d5f378ffee29a77066c77de12", "language": "en", "original_url": "/docs/19/catalog-pg-amproc.html"}], "sections": [{"title": "\u64cd\u4f5c\u7b26\u7c7b\u4e0e\u5bb6\u65cf", "paragraphs": ["\u4e00\u4e2a\u7d22\u5f15\u5b9a\u4e49\u53ef\u4ee5\u4e3a\u7d22\u5f15\u7684\u6bcf\u4e00\u5217\u6307\u5b9a\u4e00\u4e2a \u64cd\u4f5c\u7b26\u7c7b \u3002", "\u64cd\u4f5c\u7b26\u7c7b\u6807\u8bc6\u8be5\u7d22\u5f15\u5728\u8be5\u5217\u4e0a\u8981\u4f7f\u7528\u54ea\u4e9b\u64cd\u4f5c\u7b26\u3002\u4f8b\u5982\uff0c\u7c7b\u578b int4 \u4e0a\u7684\u4e00\u4e2a B-\u6811\u7d22\u5f15\u4f1a\u4f7f\u7528 int4_ops \u7c7b\uff1b\u8fd9\u4e2a\u64cd\u4f5c\u7b26\u7c7b\u5305\u542b\u5bf9 int4 \u503c\u8fdb\u884c\u6bd4\u8f83\u6240\u9700\u7684\u51fd\u6570\u3002\u5b9e\u8df5\u4e2d\uff0c\u5217\u6570\u636e\u7c7b\u578b\u7684\u9ed8\u8ba4\u64cd\u4f5c\u7b26\u7c7b\u901a\u5e38\u5df2\u7ecf\u8db3\u591f\u3002\u4e4b\u6240\u4ee5\u5b58\u5728\u64cd\u4f5c\u7b26\u7c7b\uff0c\u4e3b\u8981\u662f\u56e0\u4e3a\u5bf9\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u6765\u8bf4\uff0c\u53ef\u80fd\u5b58\u5728\u591a\u79cd\u6709\u610f\u4e49\u7684\u7d22\u5f15\u884c\u4e3a\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u80fd\u5e0c\u671b\u6309\u7edd\u5bf9\u503c\u6392\u5e8f\u4e00\u79cd\u590d\u6570\u6570\u636e\u7c7b\u578b\uff0c\u4e5f\u53ef\u80fd\u5e0c\u671b\u6309\u5b9e\u90e8\u6392\u5e8f\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e3a\u8be5\u6570\u636e\u7c7b\u578b\u5b9a\u4e49\u4e24\u4e2a\u64cd\u4f5c\u7b26\u7c7b\uff0c\u5e76\u5728\u521b\u5efa\u7d22\u5f15\u65f6\u9009\u62e9\u5408\u9002\u7684\u90a3\u4e2a\u6765\u505a\u5230\u8fd9\u4e00\u70b9\u3002\u64cd\u4f5c\u7b26\u7c7b\u51b3\u5b9a\u4e86\u57fa\u7840\u6392\u5e8f\u987a\u5e8f\uff08\u4e4b\u540e\u8fd8\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u6392\u5e8f\u9009\u9879 COLLATE \u3001 ASC / DESC \u548c/\u6216 NULLS FIRST / NULLS LAST \u6765\u4fee\u6539\uff09\u3002", "\u9664\u4e86\u9ed8\u8ba4\u64cd\u4f5c\u7b26\u7c7b\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u5185\u7f6e\u64cd\u4f5c\u7b26\u7c7b\uff1a"]}], "operators": [{"family": "oid8_ops", "method": "hash", "purpose": "search", "operator": "=(oid8,oid8)", "strategy": "1", "left_type": "oid8", "right_type": "oid8", "description": "equal", "family_slug": "family-hash-oid8_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3d-oid8-oid8", "sort_family_slug": ""}], "signature": "hash/oid8_ops", "source_oid": "", "description": ["oid8 \u7c7b\u578b\u7684 Hash \u64cd\u4f5c\u7b26\u7c7b\uff0c\u5c5e\u4e8e oid8_ops \u5bb6\u65cf\u3002"], "localization": {"status": "complete", "sources": [{"url": "/docs/19/catalog-pg-amop.html", "method": "same-major semantic node", "sha256": "8685135a1f22b71dfcd182e77ed97d14ceb21f011d1b58b2b168130423c68d5c", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMOP/p[2]/em[1]"]}, {"url": "/docs/19/indexes-opclass.html", "method": "same-major semantic node", "sha256": "4b7641f1380b0a251d73741ec707584129005d66bc7a9e701ec660c45294044f", "language": "zh", "matched_nodes": ["#INDEXES-OPCLASS/p[3]", "#INDEXES-OPCLASS/p[5]", "#INDEXES-OPCLASS/p[6]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Hash operator class for oid8; member of oid8_ops.", "/versions/19/facts/0/label": "Object kind", "/versions/19/facts/0/value": "Operator class", "/versions/19/facts/1/label": "Index AM", "/versions/19/facts/2/label": "Input type", "/versions/19/facts/3/label": "Stored key type", "/versions/19/facts/3/value": "Same as input type (catalog zero)", "/versions/19/facts/4/label": "Default class", "/versions/19/facts/4/value": "yes", "/versions/19/tables/0/title": "Family operator strategies", "/versions/19/tables/1/title": "Family support functions", "/versions/19/tables/2/title": "Classes in this family", "/versions/19/related/0/label": "Hash Index AM", "/versions/19/related/1/label": "oid8_ops family", "/versions/19/related/2/label": "oid8 data type", "/versions/19/sections/0/title": "Operator classes and families", "/versions/19/tables/0/rows/0/scope": "Class input pair", "/versions/19/sections/0/paragraphs/0": "An index definition can specify an operator class for each column of an index.", "/versions/19/sections/0/paragraphs/1": "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 ).", "/versions/19/sections/0/paragraphs/2": "There are also some built-in operator classes besides the default ones:", "/versions/19/tables/0/rows/0/purpose": "search", "/versions/19/tables/2/rows/0/default": "yes", "/versions/19/tables/0/columns/0/label": "Operator overload", "/versions/19/tables/0/columns/1/label": "Strategy", "/versions/19/tables/0/columns/2/label": "Purpose", "/versions/19/tables/0/columns/3/label": "Ordering family", "/versions/19/tables/0/columns/4/label": "Membership scope", "/versions/19/tables/0/columns/5/label": "Source description", "/versions/19/tables/1/columns/0/label": "Support number", "/versions/19/tables/1/columns/1/label": "Left type", "/versions/19/tables/1/columns/2/label": "Right type", "/versions/19/tables/1/columns/3/label": "Function signature", "/versions/19/tables/1/columns/4/label": "Result type", "/versions/19/tables/2/columns/0/label": "Class", "/versions/19/tables/2/columns/1/label": "Input type", "/versions/19/tables/2/columns/2/label": "Key type", "/versions/19/tables/2/columns/3/label": "Default", "/versions/19/tables/2/rows/0/key_type": "Same as input type", "/versions/19/tables/0/rows/0/description": "equal"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "7a64970cef341e27c7315b510ed40413c7985abf98e6bf74a29117a78a7443e4"}, "comparison_data": {"kind": "class", "classes": [{"name": "oid8_ops", "family": "oid8_ops", "method": "hash", "default": "t", "key_type": "none", "input_type": "oid8"}], "operators": [{"family": "oid8_ops", "method": "hash", "purpose": "search", "operator": "=(oid8,oid8)", "strategy": "1", "left_type": "oid8", "right_type": "oid8", "sort_family": ""}], "attributes": {"name": "oid8_ops", "family": "oid8_ops", "method": "hash", "default": "t", "key_type": "none", "input_type": "oid8"}, "support_functions": [{"family": "oid8_ops", "method": "hash", "number": "1", "function": "hashoid8(oid8)", "left_type": "oid8", "right_type": "oid8", "result_type": "int4"}, {"family": "oid8_ops", "method": "hash", "number": "2", "function": "hashoid8extended(oid8,int8)", "left_type": "oid8", "right_type": "oid8", "result_type": "int8"}]}, "comparison_hash": "067494fe90fe1d37ae365445cad268518dbf96579794ec72a1b5a37217998102", "support_functions": [{"family": "oid8_ops", "method": "hash", "number": "1", "function": "hashoid8(oid8)", "left_type": "oid8", "right_type": "oid8", "family_slug": "family-hash-oid8_ops", "result_type": "int4"}, {"family": "oid8_ops", "method": "hash", "number": "2", "function": "hashoid8extended(oid8,int8)", "left_type": "oid8", "right_type": "oid8", "family_slug": "family-hash-oid8_ops", "result_type": "int8"}]}, "20": {"class": {"name": "oid8_ops", "family": "oid8_ops", "method": "hash", "default": "t", "key_type": "none", "input_type": "oid8"}, "facts": [{"label": "\u5bf9\u8c61\u79cd\u7c7b", "value": "\u64cd\u4f5c\u7b26\u7c7b"}, {"label": "\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5", "value": "Hash"}, {"label": "\u8f93\u5165\u7c7b\u578b", "value": "oid8"}, {"label": "\u5b58\u50a8\u952e\u7c7b\u578b", "value": "\u4e0e\u8f93\u5165\u7c7b\u578b\u76f8\u540c\uff08\u76ee\u5f55\u503c\u4e3a\u96f6\uff09"}, {"label": "\u9ed8\u8ba4\u64cd\u4f5c\u7b26\u7c7b", "value": "\u662f"}], "tables": [{"key": "operators", "rows": [{"scope": "\u64cd\u4f5c\u7b26\u7c7b\u8f93\u5165\u7c7b\u578b\u5bf9", "purpose": "\u641c\u7d22", "operator": {"url": "/wiki/operator/op-3d-oid8-oid8/?v=20", "text": "=(oid8,oid8)"}, "strategy": "1", "description": "\u7b49\u4e8e", "sort_family": ""}], "title": "\u5bb6\u65cf\u4e2d\u7684\u64cd\u4f5c\u7b26\u7b56\u7565", "columns": [{"key": "operator", "label": "\u64cd\u4f5c\u7b26\u91cd\u8f7d"}, {"key": "strategy", "label": "\u7b56\u7565"}, {"key": "purpose", "label": "\u7528\u9014"}, {"key": "sort_family", "label": "\u6392\u5e8f\u5bb6\u65cf"}, {"key": "scope", "label": "\u6210\u5458\u8303\u56f4"}, {"key": "description", "label": "\u6e90\u7801\u8bf4\u660e"}]}, {"key": "support-functions", "rows": [{"number": "1", "function": "hashoid8(oid8)", "left_type": {"url": "/wiki/type/oid8/?v=20", "text": "oid8"}, "right_type": {"url": "/wiki/type/oid8/?v=20", "text": "oid8"}, "result_type": "int4"}, {"number": "2", "function": "hashoid8extended(oid8,int8)", "left_type": {"url": "/wiki/type/oid8/?v=20", "text": "oid8"}, "right_type": {"url": "/wiki/type/oid8/?v=20", "text": "oid8"}, "result_type": "int8"}], "title": "\u5bb6\u65cf\u652f\u6301\u51fd\u6570", "columns": [{"key": "number", "label": "\u652f\u6301\u51fd\u6570\u7f16\u53f7"}, {"key": "left_type", "label": "\u5de6\u4fa7\u7c7b\u578b"}, {"key": "right_type", "label": "\u53f3\u4fa7\u7c7b\u578b"}, {"key": "function", "label": "\u51fd\u6570\u7b7e\u540d"}, {"key": "result_type", "label": "\u8fd4\u56de\u7c7b\u578b"}]}, {"key": "classes", "rows": [{"class": {"url": "/wiki/opclass/class-hash-oid8_ops/?v=20", "text": "oid8_ops"}, "default": "\u662f", "key_type": "\u4e0e\u8f93\u5165\u7c7b\u578b\u76f8\u540c", "input_type": {"url": "/wiki/type/oid8/?v=20", "text": "oid8"}}], "title": "\u672c\u5bb6\u65cf\u7684\u64cd\u4f5c\u7b26\u7c7b", "columns": [{"key": "class", "label": "\u64cd\u4f5c\u7b26\u7c7b"}, {"key": "input_type", "label": "\u8f93\u5165\u7c7b\u578b"}, {"key": "key_type", "label": "\u952e\u7c7b\u578b"}, {"key": "default", "label": "\u9ed8\u8ba4\u503c"}]}], "aliases": ["oid8_ops", "hash/oid8_ops"], "classes": [{"name": "oid8_ops", "slug": "class-hash-oid8_ops", "family": "oid8_ops", "method": "hash", "default": "t", "key_type": "none", "input_type": "oid8", "source_oid": "", "family_slug": "family-hash-oid8_ops"}], "related": [{"url": "/wiki/indexam/hash/?v=20", "label": "Hash \u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5"}, {"url": "/wiki/opclass/family-hash-oid8_ops/?v=20", "label": "oid8_ops \u5bb6\u65cf"}, {"url": "/wiki/type/oid8/?v=20", "label": "oid8 \u6570\u636e\u7c7b\u578b"}], "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": "https://pg.center/docs/devel/indexes-opclass.html", "path": "indexes-opclass.html", "label": "PostgreSQL 20 English manual: indexes-opclass.html", "sha256": "11f438e25406337ef7c41690a7d47744980230c83ade5106803b49a7a09afb80", "language": "en", "original_url": "/docs/devel/indexes-opclass.html"}, {"url": "https://pg.center/docs/devel/catalog-pg-opclass.html", "path": "catalog-pg-opclass.html", "label": "PostgreSQL 20 English manual: catalog-pg-opclass.html", "sha256": "ff36405486ec573922caff5bcf9cf5f8f8375c9371968fbd3ebc8c435a780ce8", "language": "en", "original_url": "/docs/devel/catalog-pg-opclass.html"}, {"url": "https://pg.center/docs/devel/catalog-pg-amop.html", "path": "catalog-pg-amop.html", "label": "PostgreSQL 20 English manual: catalog-pg-amop.html", "sha256": "00fee8a631088b687e2d880e4091791ca30f9c69fca888c51ece463d1b9e1e61", "language": "en", "original_url": "/docs/devel/catalog-pg-amop.html"}, {"url": "https://pg.center/docs/devel/catalog-pg-amproc.html", "path": "catalog-pg-amproc.html", "label": "PostgreSQL 20 English manual: catalog-pg-amproc.html", "sha256": "5390831efcf71a10077be802ab320fbf5d6fc780fdadf679cd162f3a46a3c6d3", "language": "en", "original_url": "/docs/devel/catalog-pg-amproc.html"}], "sections": [{"title": "\u64cd\u4f5c\u7b26\u7c7b\u4e0e\u5bb6\u65cf", "paragraphs": ["\u4e00\u4e2a\u7d22\u5f15\u5b9a\u4e49\u53ef\u4ee5\u4e3a\u7d22\u5f15\u7684\u6bcf\u4e00\u5217\u6307\u5b9a\u4e00\u4e2a \u64cd\u4f5c\u7b26\u7c7b \u3002", "\u64cd\u4f5c\u7b26\u7c7b\u6807\u8bc6\u8be5\u7d22\u5f15\u5728\u8be5\u5217\u4e0a\u8981\u4f7f\u7528\u54ea\u4e9b\u64cd\u4f5c\u7b26\u3002\u4f8b\u5982\uff0c\u7c7b\u578b int4 \u4e0a\u7684\u4e00\u4e2a B-\u6811\u7d22\u5f15\u4f1a\u4f7f\u7528 int4_ops \u7c7b\uff1b\u8fd9\u4e2a\u64cd\u4f5c\u7b26\u7c7b\u5305\u542b\u5bf9 int4 \u503c\u8fdb\u884c\u6bd4\u8f83\u6240\u9700\u7684\u51fd\u6570\u3002\u5b9e\u8df5\u4e2d\uff0c\u5217\u6570\u636e\u7c7b\u578b\u7684\u9ed8\u8ba4\u64cd\u4f5c\u7b26\u7c7b\u901a\u5e38\u5df2\u7ecf\u8db3\u591f\u3002\u4e4b\u6240\u4ee5\u5b58\u5728\u64cd\u4f5c\u7b26\u7c7b\uff0c\u4e3b\u8981\u662f\u56e0\u4e3a\u5bf9\u67d0\u4e9b\u6570\u636e\u7c7b\u578b\u6765\u8bf4\uff0c\u53ef\u80fd\u5b58\u5728\u591a\u79cd\u6709\u610f\u4e49\u7684\u7d22\u5f15\u884c\u4e3a\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u80fd\u5e0c\u671b\u6309\u7edd\u5bf9\u503c\u6392\u5e8f\u4e00\u79cd\u590d\u6570\u6570\u636e\u7c7b\u578b\uff0c\u4e5f\u53ef\u80fd\u5e0c\u671b\u6309\u5b9e\u90e8\u6392\u5e8f\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e3a\u8be5\u6570\u636e\u7c7b\u578b\u5b9a\u4e49\u4e24\u4e2a\u64cd\u4f5c\u7b26\u7c7b\uff0c\u5e76\u5728\u521b\u5efa\u7d22\u5f15\u65f6\u9009\u62e9\u5408\u9002\u7684\u90a3\u4e2a\u6765\u505a\u5230\u8fd9\u4e00\u70b9\u3002\u64cd\u4f5c\u7b26\u7c7b\u51b3\u5b9a\u4e86\u57fa\u7840\u6392\u5e8f\u987a\u5e8f\uff08\u4e4b\u540e\u8fd8\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u6392\u5e8f\u9009\u9879 COLLATE \u3001 ASC / DESC \u548c/\u6216 NULLS FIRST / NULLS LAST \u6765\u4fee\u6539\uff09\u3002", "\u9664\u4e86\u9ed8\u8ba4\u64cd\u4f5c\u7b26\u7c7b\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u5185\u7f6e\u64cd\u4f5c\u7b26\u7c7b\uff1a"]}], "operators": [{"family": "oid8_ops", "method": "hash", "purpose": "search", "operator": "=(oid8,oid8)", "strategy": "1", "left_type": "oid8", "right_type": "oid8", "description": "equal", "family_slug": "family-hash-oid8_ops", "result_type": "bool", "sort_family": "", "operator_slug": "op-3d-oid8-oid8", "sort_family_slug": ""}], "signature": "hash/oid8_ops", "source_oid": "", "description": ["oid8 \u7c7b\u578b\u7684 Hash \u64cd\u4f5c\u7b26\u7c7b\uff0c\u5c5e\u4e8e oid8_ops \u5bb6\u65cf\u3002"], "localization": {"status": "complete", "sources": [{"url": "/docs/devel/catalog-pg-amop.html", "method": "same-major semantic node", "sha256": "e899b3d8b206f52e8dc0ac4b6019e55022abcf901a9d6cf93edf588bc4354664", "language": "zh", "matched_nodes": ["#CATALOG-PG-AMOP/p[2]/em[1]"]}, {"url": "/docs/devel/indexes-opclass.html", "method": "same-major semantic node", "sha256": "166b0550fdb1c3e8c1fbd979c5e41c060ed4cfcdc2d6ba4733ec27d22f45a62d", "language": "zh", "matched_nodes": ["#INDEXES-OPCLASS/p[3]", "#INDEXES-OPCLASS/p[5]", "#INDEXES-OPCLASS/p[6]"]}], "language": "zh", "original_text": {"/summary": "Hash operator class for oid8; member of oid8_ops.", "/category": "Hash classes", "/versions/20/description/0": "Hash operator class for oid8; member of oid8_ops.", "/versions/20/facts/0/label": "Object kind", "/versions/20/facts/0/value": "Operator class", "/versions/20/facts/1/label": "Index AM", "/versions/20/facts/2/label": "Input type", "/versions/20/facts/3/label": "Stored key type", "/versions/20/facts/3/value": "Same as input type (catalog zero)", "/versions/20/facts/4/label": "Default class", "/versions/20/facts/4/value": "yes", "/versions/20/tables/0/title": "Family operator strategies", "/versions/20/tables/1/title": "Family support functions", "/versions/20/tables/2/title": "Classes in this family", "/versions/20/related/0/label": "Hash Index AM", "/versions/20/related/1/label": "oid8_ops family", "/versions/20/related/2/label": "oid8 data type", "/versions/20/sections/0/title": "Operator classes and families", "/versions/20/tables/0/rows/0/scope": "Class input pair", "/versions/20/sections/0/paragraphs/0": "An index definition can specify an operator class for each column of an index.", "/versions/20/sections/0/paragraphs/1": "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 ).", "/versions/20/sections/0/paragraphs/2": "There are also some built-in operator classes besides the default ones:", "/versions/20/tables/0/rows/0/purpose": "search", "/versions/20/tables/2/rows/0/default": "yes", "/versions/20/tables/0/columns/0/label": "Operator overload", "/versions/20/tables/0/columns/1/label": "Strategy", "/versions/20/tables/0/columns/2/label": "Purpose", "/versions/20/tables/0/columns/3/label": "Ordering family", "/versions/20/tables/0/columns/4/label": "Membership scope", "/versions/20/tables/0/columns/5/label": "Source description", "/versions/20/tables/1/columns/0/label": "Support number", "/versions/20/tables/1/columns/1/label": "Left type", "/versions/20/tables/1/columns/2/label": "Right type", "/versions/20/tables/1/columns/3/label": "Function signature", "/versions/20/tables/1/columns/4/label": "Result type", "/versions/20/tables/2/columns/0/label": "Class", "/versions/20/tables/2/columns/1/label": "Input type", "/versions/20/tables/2/columns/2/label": "Key type", "/versions/20/tables/2/columns/3/label": "Default", "/versions/20/tables/2/rows/0/key_type": "Same as input type", "/versions/20/tables/0/rows/0/description": "equal"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "7819fd577773ed39848a1bb1ab5b97693f0d9aa84a05e23db3231ccabb8b2c78"}, "comparison_data": {"kind": "class", "classes": [{"name": "oid8_ops", "family": "oid8_ops", "method": "hash", "default": "t", "key_type": "none", "input_type": "oid8"}], "operators": [{"family": "oid8_ops", "method": "hash", "purpose": "search", "operator": "=(oid8,oid8)", "strategy": "1", "left_type": "oid8", "right_type": "oid8", "sort_family": ""}], "attributes": {"name": "oid8_ops", "family": "oid8_ops", "method": "hash", "default": "t", "key_type": "none", "input_type": "oid8"}, "support_functions": [{"family": "oid8_ops", "method": "hash", "number": "1", "function": "hashoid8(oid8)", "left_type": "oid8", "right_type": "oid8", "result_type": "int4"}, {"family": "oid8_ops", "method": "hash", "number": "2", "function": "hashoid8extended(oid8,int8)", "left_type": "oid8", "right_type": "oid8", "result_type": "int8"}]}, "comparison_hash": "067494fe90fe1d37ae365445cad268518dbf96579794ec72a1b5a37217998102", "support_functions": [{"family": "oid8_ops", "method": "hash", "number": "1", "function": "hashoid8(oid8)", "left_type": "oid8", "right_type": "oid8", "family_slug": "family-hash-oid8_ops", "result_type": "int4"}, {"family": "oid8_ops", "method": "hash", "number": "2", "function": "hashoid8extended(oid8,int8)", "left_type": "oid8", "right_type": "oid8", "family_slug": "family-hash-oid8_ops", "result_type": "int8"}]}}}, "snapshot": null, "comparison": {"left": "18", "right": "19", "status": "added", "diff": "--- PostgreSQL 18\n+++ PostgreSQL 19\n@@ -1 +1,53 @@\n-\u8be5\u7248\u672a\u6536\u5f55\n+{\n+  \"attributes\": {\n+    \"default\": \"t\",\n+    \"family\": \"oid8_ops\",\n+    \"input_type\": \"oid8\",\n+    \"key_type\": \"none\",\n+    \"method\": \"hash\",\n+    \"name\": \"oid8_ops\"\n+  },\n+  \"classes\": [\n+    {\n+      \"default\": \"t\",\n+      \"family\": \"oid8_ops\",\n+      \"input_type\": \"oid8\",\n+      \"key_type\": \"none\",\n+      \"method\": \"hash\",\n+      \"name\": \"oid8_ops\"\n+    }\n+  ],\n+  \"kind\": \"class\",\n+  \"operators\": [\n+    {\n+      \"family\": \"oid8_ops\",\n+      \"left_type\": \"oid8\",\n+      \"method\": \"hash\",\n+      \"operator\": \"=(oid8,oid8)\",\n+      \"purpose\": \"search\",\n+      \"right_type\": \"oid8\",\n+      \"sort_family\": \"\",\n+      \"strategy\": \"1\"\n+    }\n+  ],\n+  \"support_functions\": [\n+    {\n+      \"family\": \"oid8_ops\",\n+      \"function\": \"hashoid8(oid8)\",\n+      \"left_type\": \"oid8\",\n+      \"method\": \"hash\",\n+      \"number\": \"1\",\n+      \"result_type\": \"int4\",\n+      \"right_type\": \"oid8\"\n+    },\n+    {\n+      \"family\": \"oid8_ops\",\n+      \"function\": \"hashoid8extended(oid8,int8)\",\n+      \"left_type\": \"oid8\",\n+      \"method\": \"hash\",\n+      \"number\": \"2\",\n+      \"result_type\": \"int8\",\n+      \"right_type\": \"oid8\"\n+    }\n+  ]\n+}"}}