Skip to content

daterangex

Date range type whose displayed upper bound is inclusive, with casts and operators.

daterangex · Date range type whose displayed upper bound is inclusive, with casts and operators.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101872daterangexdaterangex1.1TYPEBSD-3-ClauseC

Usage

Sources:

daterangex Date range type whose displayed upper bound is inclusive, with casts and operators.

Enablement

Install the files for the intended server, then create daterangex in the target database:

CREATE EXTENSION daterangex;

Core Workflow

The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.

CREATE EXTENSION daterangex;
SELECT daterange('[2024-01-01,2024-06-01]');
        daterange
-------------------------
 [2024-01-01,2024-06-02)

SELECT daterangex('[2024-01-01,2024-06-01]');
       daterangex
-------------------------
 [2024-01-01,2024-06-01]

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
date_minusFUNCTIONCallable function from the reviewed install surface.
daterangex_canonicalFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • Treat extension upgrades as database changes: review the upstream upgrade path, privileges, locks, and backup/restore behavior first.

Table reader