{"Entry":{"collection":"operator","key":"op-2d-timestamp-interval","name":"-(timestamp,interval)","aliases":["-","-(timestamp,interval)"],"metadata":{"aliases":["-","-(timestamp,interval)"],"category":"Date and time","content_hash":"c296f66de6c51d35b5e6d8ba42f2dc50890585d92f3b195a9fcf01816ebf5e89","imported_at":"2026-09-30T00:40:40.966743+08:00","name":"-(timestamp,interval)","name_zh":"","slug":"op-2d-timestamp-interval","summary":"subtract"}},"Definition":{"Collection":"operator","Key":"op-2d-timestamp-interval","SourceDatabase":"center","Version":"18","SourceTable":"pg_operator_entry","SourceKey":"op-2d-timestamp-interval","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","Facts":{"aliases":["-","-(timestamp,interval)"],"comparison_data":{"memberships":[],"operator":{"commutator":"","function":"timestamp_mi_interval(timestamp,interval)","hash_join":"f","kind":"b","left_type":"timestamp","merge_join":"f","negator":"","result_type":"timestamp","right_type":"interval","symbol":"-"}},"comparison_hash":"066d1fa1ee125d79176b62137a69c5dde4e0c729dcc651edae4521ad3df00d3d","description":["subtract"],"facts":[{"label":"Left operand","value":"timestamp"},{"label":"Right operand","value":"interval"},{"label":"Result type","value":"timestamp"},{"label":"Implementing function","value":"timestamp_mi_interval(timestamp,interval)"},{"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":"timestamp_mi_interval(timestamp,interval)","hash_join":"f","kind":"b","left_type":"timestamp","merge_join":"f","negator":"","result_type":"timestamp","right_type":"interval","symbol":"-"},"related":[{"label":"timestamp data type","url":"/wiki/type/timestamp/?v=18"},{"label":"interval data type","url":"/wiki/type/interval/?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":["Subtract an interval from a timestamp","timestamp '2001-09-28 23:00' - interval '23 hours' → 2001-09-28 00:00:00"],"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":"-(timestamp,interval) → timestamp","source_oid":"2068","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-datetime.html","path":"functions-datetime.html","sha256":"17632ebd7f646daa96570bdd44ff4c7798176108b449fb8e7e16ca1f895a0e1f","url":"/docs/18/functions-datetime.html#OPERATORS-DATETIME-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-datetime.html","path":"functions-datetime.html","sha256":"17632ebd7f646daa96570bdd44ff4c7798176108b449fb8e7e16ca1f895a0e1f","url":"/docs/18/functions-datetime.html#OPERATORS-DATETIME-TABLE"}]},"MeasuredEvidence":{}},"Text":{"Collection":"operator","Key":"op-2d-timestamp-interval","SourceDatabase":"center","Version":"18","Locale":"en","Title":"-(timestamp,interval)","Summary":"subtract","BodyHTML":"\u003cp\u003esubtract\u003c/p\u003e","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","ContentHash":"465ee2fcff5f346994a38035f145bd7fb5fb89cda16d9a0466b3beacd47537d6","Payload":{"description":["subtract"],"related":[{"label":"timestamp data type","url":"/wiki/type/timestamp/?v=18"},{"label":"interval data type","url":"/wiki/type/interval/?v=18"}],"sections":[{"paragraphs":["Subtract an interval from a timestamp","timestamp '2001-09-28 23:00' - interval '23 hours' → 2001-09-28 00:00:00"],"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}
