Skip to content

pgpm-app-scope

Ordered scope-chain resolution for PGPM application catalogs.

pgpm-app-scope · Ordered scope-chain resolution for PGPM application catalogs.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102159pgpm-app-scopepgpm-app-scope0.47.0FEATMITPLpgSQL

Usage

Sources:

pgpm-app-scope produces ordered scope frames for nearest-match lookups in a provisioned Constructive catalog. app_scope.frames returns scope, lookup database and key; app_scope.local_frames stays within one database.

Core Workflow

CREATE EXTENSION "pgpm-app-scope";
SELECT scope, lookup_database_id, key_value
FROM app_scope.frames(app_scope.platform_database_id(), 'platform');

Operational Boundaries

app_scope.platform_database_id raises if the platform database is not registered. A NULL execution scope is rejected. The lookup depends on populated metaschema and scope projections. Upstream explicitly excludes calling the frame walker from row-security policies. Several helpers are SECURITY DEFINER; restrict ownership, execution privileges and the surrounding catalog. Dependencies are plpgsql, pgpm-verify, metaschema-schema, metaschema-modules. The installation SQL grants privileges to the pre-existing roles administrator, authenticated. This SQL-only module needs no library preload or restart; no PostgreSQL-major support matrix is published for this revision. Its fixed schema layout is not relocatable. Install the matching dependency closure before enabling it.

Table reader