Chapter 3. PostgreSQL Operators
Data types, by themselves, are only useful for holding data. To make comparisons, orderings, and selections of table datum, operators are needed.
Most operators simply return an implicit Boolean true or false given the comparison criteria. However, some operators, such as the math- and string-related ones, return new results from the supplied elements.
The following is a map of the default PostgreSQL operators grouped by data type. After that is a more detailed listing of all the supported PostgreSQL operators, including information on specific usage, syntax, and notes.
| Data Type | Operator |
|---|---|
| Geometric |
+
- * / # ## && &< &> <-> << <^ >> >^ ?# ?- ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access