{"Entry":{"collection":"operator","key":"op-2d-anyrange-anyrange","name":"-(anyrange,anyrange)","aliases":["-","-(anyrange,anyrange)"],"metadata":{"aliases":["-","-(anyrange,anyrange)"],"category":"Pseudo-types","content_hash":"076552f538023c03f5cf5898bd38178416769efa08384eb01618c6389a4758b3","imported_at":"2026-09-30T00:40:40.850545+08:00","name":"-(anyrange,anyrange)","name_zh":"","slug":"op-2d-anyrange-anyrange","summary":"range difference"}},"Definition":{"Collection":"operator","Key":"op-2d-anyrange-anyrange","SourceDatabase":"center","Version":"18","SourceTable":"pg_operator_entry","SourceKey":"op-2d-anyrange-anyrange","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","Facts":{"aliases":["-","-(anyrange,anyrange)"],"comparison_data":{"memberships":[],"operator":{"commutator":"","function":"range_minus(anyrange,anyrange)","hash_join":"f","kind":"b","left_type":"anyrange","merge_join":"f","negator":"","result_type":"anyrange","right_type":"anyrange","symbol":"-"}},"comparison_hash":"6652dd3ed682e64cdcb4aba4bab0648aced3788fecfdddb855e88b403eb0b078","description":["range difference"],"facts":[{"label":"Left operand","value":"anyrange"},{"label":"Right operand","value":"anyrange"},{"label":"Result type","value":"anyrange"},{"label":"Implementing function","value":"range_minus(anyrange,anyrange)"},{"label":"Operator kind","value":"Binary"},{"label":"Hash join candidate","value":"no"},{"label":"Merge join candidate","value":"no"}],"manual_semantics":"Exact operand/result signature matched","memberships":[],"operator":{"commutator":"","function":"range_minus(anyrange,anyrange)","hash_join":"f","kind":"b","left_type":"anyrange","merge_join":"f","negator":"","result_type":"anyrange","right_type":"anyrange","symbol":"-"},"related":[{"label":"anyrange data type","url":"/wiki/type/anyrange/?v=18"}],"release":{"catalog_fingerprint":"deec62e0f0c649d9d0d058ddd0b16bf41afffd569c3fd73949ff0971ce5cabd6","channel":"stable","label":"18.6","major":"18","manual_fingerprint":"fefce9e478eb2afe5e17e869492bbedc67dce23d317f0a5257240113d6496ebc","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sections":[{"paragraphs":["Computes the difference of the ranges. The second range must not be contained in the first in such a way that the difference would not be a single range.","int8range(5,15) - int8range(10,20) → [5,10)"],"title":"English manual definition"},{"paragraphs":["The catalog pg_operator stores information about operators. See CREATE OPERATOR and Section 36.14 for more information."],"title":"Catalog interpretation"}],"signature":"-(anyrange,anyrange) → anyrange","source_oid":"3899","sources":[{"label":"Matching PostgreSQL source archive","sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2"},{"label":"PostgreSQL 18 English manual: catalog-pg-operator.html","path":"catalog-pg-operator.html","sha256":"e0b1817914e5e8f9037955cd41e9a43584e9227fcc115784898ecdd9a6c0ecd6","url":"/docs/18/catalog-pg-operator.html"},{"label":"PostgreSQL 18 English manual: catalog-pg-amop.html","path":"catalog-pg-amop.html","sha256":"e65b90ee78eaf4b4da97ce5b08b972cee2e2660b882ec107be22eca47201f7d1","url":"/docs/18/catalog-pg-amop.html"},{"label":"PostgreSQL 18 English manual: functions-range.html","path":"functions-range.html","sha256":"a29f39b55f385dff18da029dfc4fdc67c18440d8eecd302b53ff7be551008d10","url":"/docs/18/functions-range.html#RANGE-OPERATORS-TABLE"}],"tables":[]},"ManualEvidence":{"release":{"catalog_fingerprint":"deec62e0f0c649d9d0d058ddd0b16bf41afffd569c3fd73949ff0971ce5cabd6","channel":"stable","label":"18.6","major":"18","manual_fingerprint":"fefce9e478eb2afe5e17e869492bbedc67dce23d317f0a5257240113d6496ebc","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sources":[{"label":"Matching PostgreSQL source archive","sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2"},{"label":"PostgreSQL 18 English manual: catalog-pg-operator.html","path":"catalog-pg-operator.html","sha256":"e0b1817914e5e8f9037955cd41e9a43584e9227fcc115784898ecdd9a6c0ecd6","url":"/docs/18/catalog-pg-operator.html"},{"label":"PostgreSQL 18 English manual: catalog-pg-amop.html","path":"catalog-pg-amop.html","sha256":"e65b90ee78eaf4b4da97ce5b08b972cee2e2660b882ec107be22eca47201f7d1","url":"/docs/18/catalog-pg-amop.html"},{"label":"PostgreSQL 18 English manual: functions-range.html","path":"functions-range.html","sha256":"a29f39b55f385dff18da029dfc4fdc67c18440d8eecd302b53ff7be551008d10","url":"/docs/18/functions-range.html#RANGE-OPERATORS-TABLE"}]},"MeasuredEvidence":{}},"Text":{"Collection":"operator","Key":"op-2d-anyrange-anyrange","SourceDatabase":"center","Version":"18","Locale":"en","Title":"-(anyrange,anyrange)","Summary":"range difference","BodyHTML":"\u003cp\u003erange difference\u003c/p\u003e","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","ContentHash":"39cb72e66ff3e04a3567621fe2a1b1563083335c3571263036fef9933f31b2d9","Payload":{"description":["range difference"],"related":[{"label":"anyrange data type","url":"/wiki/type/anyrange/?v=18"}],"sections":[{"paragraphs":["Computes the difference of the ranges. The second range must not be contained in the first in such a way that the difference would not be a single range.","int8range(5,15) - int8range(10,20) → [5,10)"],"title":"English manual definition"},{"paragraphs":["The catalog pg_operator stores information about operators. See CREATE OPERATOR and Section 36.14 for more information."],"title":"Catalog interpretation"}],"tables":[]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
