Skip to content

pg_climb

Rock-climbing grade conversion and utility functions.

pg_climb · Rock-climbing grade conversion and utility functions.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101904pg_climbpg_climb1.0FUNCC

PostgreSQL · 17

Usage

Sources:

pg_climb Rock-climbing grade conversion and utility functions.

Enablement

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

CREATE EXTENSION pg_climb;

Core Workflow

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

CREATE TABLE routes (grade grade);
INSERT INTO routes VALUES ('V5'::grade), ('F7A+'::grade);

SELECT grade, grade_type(grade)
FROM routes
ORDER BY grade;

Main Objects

The reviewed install surface includes these prominent objects:

ObjectKindOperational role
btree_grade_opsOPERATOR CLASSOperator class used by indexes.
gradeTYPEUser-facing data type created by the extension.
grade_cmpFUNCTIONCallable function from the reviewed install surface.
grade_eqFUNCTIONCallable function from the reviewed install surface.
grade_geFUNCTIONCallable function from the reviewed install surface.
grade_gtFUNCTIONCallable function from the reviewed install surface.
grade_inFUNCTIONCallable function from the reviewed install surface.
grade_leFUNCTIONCallable function from the reviewed install surface.

Operations and Boundaries

  • The verified PostgreSQL-major evidence covers 17; do not infer unlisted majors.

Table reader