Skip to content

version_check

Version-specific PostgreSQL major-version predicates.

version_control · Version-specific PostgreSQL major-version predicates.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102068version_checkversion_control5.0UTILC

PostgreSQL · 17

Usage

Sources:

version_check supplies boolean predicates for PostgreSQL major versions. The reviewed 5.0 SQL installs predicates for versions 13 through 17, while the current C source explicitly builds only against PostgreSQL 17.

Core Workflow

CREATE EXTENSION version_check;
SELECT getversion13(), getversion14(), getversion15(), getversion16(), getversion17();

Operational Boundaries

Install as a superuser; no preload or restart is required by this implementation. In the PG17 build only the version-17 predicate is true. These are compiled predicates, not a general runtime compatibility probe. The README contains older filenames and comments; the control, SQL and compiler guard establish this exact version. No explicit license was found.

Table reader