↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / Operators

-(timestamp,timestamp)

subtract

Reading PG 18·Select a recorded version

Left operand
timestamp
Right operand
timestamp
Result type
interval
Implementing function
timestamp_mi(timestamp,timestamp)
Operator kind
Binary
Hash join candidate
no
Merge join candidate
no
aliases
-, -(timestamp,timestamp)
manual semantics
Exact operand/result signature matched
memberships
Unknown
signature
-(timestamp,timestamp) → interval
source oid
2067

Definition PG 18

subtract

Compare versions

Complete source facts

operator

{"commutator":"","function":"timestamp_mi(timestamp,timestamp)","hash_join":"f","kind":"b","left_type":"timestamp","merge_join":"f","negator":"","result_type":"interval","right_type":"timestamp","symbol":"-"}

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f

Text language: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f