Skip to main content

PostgreSQL 18 Functions & Operators Coverage Audit

Authority: PostgreSQL 18 Functions and Operators documentation. Exact function overloads evolve; the handbook teaches each functional category, semantics, index implications, and production caveats while the official reference remains the exhaustive signature list.

Official category / familyRepresentative constructsHandbook coverageDepth
Logical operatorsAND, OR, NOT25–26, 19Core + NULL logic
Comparison=, <>, <, >, BETWEEN, IS DISTINCT FROM, row comparisons19, 25–26Deep
Mathematical functions/operatorsarithmetic, powers, rounding, random/statistical helpers10, 25, 28Core
String functions/operatorsconcatenation, length, substring, trim, case conversion, replace, split11, 25Core
Binary-string functions/operatorsbytea functions/operators18, 25Reference
Bit-string functions/operatorsbit operations, shifts, length18, 25Reference
Pattern matchingLIKE, ILIKE, SQL regex/SIMILAR-style and POSIX regex features25–26, 103Core
Data type formattingto_char, to_date, to_number, formatting templates13, 25Core/Reference
Date/time functions/operatorscurrent time, extraction, truncation, arithmetic, timezone conversion13Deep
Enum supportcomparison/order/range helpers for enum values12Core/Reference
Geometric functions/operatorscontainment/intersection/distance for geometric types18, 54Reference
Network address functions/operatorscontainment, masks, host/network operations18Core/Reference
Text search functions/operators@@, vector/query construction, ranking, headline, configs103Deep
UUID functionsUUID inspection/generation including PG18 uuidv7()14, 167Core
XML functionsXML construction/query/processing18Reference
JSON/JSONB operators/functionsextraction, containment, existence, construction, mutation, SQL/JSON path/functions16, 25, 53Deep
Sequence functionsnextval, currval, setval, sequence state41Deep
Conditional expressionsCASE, COALESCE, NULLIF, GREATEST, LEAST36Deep
Array functions/operatorscontainment/overlap, concatenation, dimensions, unnest, ANY/ALL interplay15, 25Deep
Range/multirange functions/operatorsoverlap, contains, adjacency, union/intersection/difference, bounds17, 25, 54Deep
Aggregate functionscount/sum/avg/min/max, arrays, strings, JSON, ordered/filter/distinct aggregates28–29Deep
Ordered-set / hypothetical-set aggregatespercentiles, ranking-like aggregates28, interview exercisesAdvanced
Window functionsranking, distribution, navigation, first/last/nth, aggregate windows37Deep
Set-returning functionstable-returning functions, generate_series, unnest, ordinality38, 98Core/Advanced
Row/array constructors and comparisonsROW(...), row comparison, arrays15, 38Core
Subquery expressionsEXISTS, IN, ANY, ALL, scalar/row subqueries31, 26Deep
System informationversion/session/current database/schema/user/role/object identity functions05–07, 92–94, 106–108Core/Reference
System administrationconfig, cancellation/termination, backup/recovery, WAL, replication/admin helpers82–90, 108–138Advanced production
Statistics informationactivity/statistics functions and views, sizes, blocking helpers, WAL LSN difference105–110, 133–138Deep production
Object-size helpersrelation/database/table/index size functions106–108, 138, production exercisesCore operations
Lock/blocking helperspg_blocking_pids and lock-state inspection109Deep production
WAL/LSN helperscurrent LSN, LSN difference, recovery/replication positions82, 87–89, 137, 178Deep production
Trigger contextNEW, OLD, trigger metadata101Deep
Event-trigger contextDDL event metadata/functions102Reference/Advanced
PL/pgSQL and dynamic SQL helpersroutine expressions, format, EXECUTE ... USING, exceptions100Deep

Operator/index connection​

Operators are not merely syntax. PostgreSQL index access methods support operator classes/families, so a query must use semantics the index knows how to accelerate. The handbook connects:

query operator
↓
data type + collation
↓
operator class/family
↓
index access method
↓
planner cost/selectivity

This is why a JSONB GIN index, text B-tree, trigram GIN/GiST, range GiST, and BRIN do not serve interchangeable predicates.

Coverage conclusion​

All PostgreSQL 18 Chapter 9 functional/operator families are mapped. Frequently used application functions/operators are taught with runnable examples; specialized administration/internal families are covered in the production/internals chapters and referenced back to the official documentation for complete overload signatures.