Skip to content

pgho_permissions

Hierarchical RBAC and ABAC authorization for PostgreSQL and Supabase, designed for use in row-level-security policies.

pgho_permissions · Hierarchical RBAC and ABAC authorization for PostgreSQL and Supabase, designed for use in row-level-security policies.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101668pgho_permissionspgho_permissions0.0.18SECUnknownSQL

Usage

Sources:

pgho_permissions — A PostgreSQL extension that brings flexible, hierarchical access control to your database. Use it when implementing the corresponding security, audit, or access-control workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION pgho_permissions;

-- Install the extension
SELECT dbdev.install('asghonim@pgho_permissions');

-- (Re)create the schema and extension
DROP EXTENSION  IF EXISTS "asghonim@pgho_permissions";
DROP SCHEMA     IF EXISTS pgho_permissions;
CREATE SCHEMA   IF NOT EXISTS pgho_permissions;
CREATE EXTENSION IF NOT EXISTS "asghonim@pgho_permissions"
  SCHEMA pgho_permissions
  VERSION '0.0.18';

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Requirements and Caveats

  • The reviewed control file declares default version 0.0.18.
  • The control file marks the extension as relocatable.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader