type

MULTIRANGE

PostgreSQL multiranges represent ordered collections of nonempty, nonoverlapping, nonadjacent ranges of one range type. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.

Formal Syntax & Structure

sql syntaxsql
int4multirange (example built-in type)

Working Example

Example Snippetsql
SELECT CAST('{[1,3),[3,5)}' AS int4multirange)::text;
SQL Reference