Skip to content
masterclass Buddy

PostgreSQL · Type Alias

int4range

int4range is PostgreSQL's built-in range type for integers. Its default form includes the lower bound and excludes the upper bound, such as [10,20).

Last updated

Syntax

int4range(lower, upper [, bounds])

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • int4multirange
  • int8range
  • numrange
  • tsrange
  • tstzrange
  • daterange
  • @>
  • <@

Source: PostgreSQL: Documentation: 18: 8.17. Range Types. Checked 2026-11-03.