Skip to content

meta

Normalized, friendlier system catalog for PostgreSQL

pg_meta · Normalized, friendlier system catalog for PostgreSQL

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
6440metapg_meta0.4.0STATBSD-2-ClauseSQL
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
----d--NoNoNoYesnono

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY0.4.019 18 17 16 15pg_meta-
RPMPIGSTY0.4.019 18 17 16 15pg_meta_$v-
DEBPIGSTY0.4.019 18 17 16 15postgresql-$v-pg-meta-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
el8.aarch64N/APIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
el9.x86_64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
el9.aarch64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
el10.x86_64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
el10.aarch64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
d12.x86_64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
d12.aarch64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
d13.x86_64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
d13.aarch64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
u22.x86_64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
u22.aarch64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
u24.x86_64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
u24.aarch64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
u26.x86_64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
u26.aarch64PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0PIGSTY 0.4.0
PackageVersionOSORGSIZEFile URL
pg_meta_190.4.0el9.x86_64pigsty15.7 KiBpg_meta_19-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_190.4.0el9.aarch64pigsty15.7 KiBpg_meta_19-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_190.4.0el10.x86_64pigsty15.9 KiBpg_meta_19-0.4.0-1PGSTY.el10.noarch.rpm
pg_meta_190.4.0el10.aarch64pigsty15.9 KiBpg_meta_19-0.4.0-1PGSTY.el10.noarch.rpm
postgresql-19-pg-meta0.4.0d12.x86_64pigsty11.4 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-19-pg-meta0.4.0d12.aarch64pigsty11.4 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-19-pg-meta0.4.0d13.x86_64pigsty11.4 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-19-pg-meta0.4.0d13.aarch64pigsty11.4 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-19-pg-meta0.4.0u22.x86_64pigsty11.4 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-19-pg-meta0.4.0u22.aarch64pigsty11.4 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-19-pg-meta0.4.0u24.x86_64pigsty11.5 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-19-pg-meta0.4.0u24.aarch64pigsty11.5 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-19-pg-meta0.4.0u26.x86_64pigsty11.5 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~resolute_all.deb
postgresql-19-pg-meta0.4.0u26.aarch64pigsty11.5 KiBpostgresql-19-pg-meta_0.4.0-1PGSTY~resolute_all.deb
PackageVersionOSORGSIZEFile URL
pg_meta_180.4.0el8.x86_64pigsty16.3 KiBpg_meta_18-0.4.0-1PGSTY.el8.noarch.rpm
pg_meta_180.4.0el8.aarch64pigsty16.3 KiBpg_meta_18-0.4.0-1PGSTY.el8.noarch.rpm
pg_meta_180.4.0el9.x86_64pigsty15.7 KiBpg_meta_18-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_180.4.0el9.aarch64pigsty15.7 KiBpg_meta_18-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_180.4.0el10.x86_64pigsty15.9 KiBpg_meta_18-0.4.0-1PGSTY.el10.noarch.rpm
pg_meta_180.4.0el10.aarch64pigsty15.9 KiBpg_meta_18-0.4.0-1PGSTY.el10.noarch.rpm
postgresql-18-pg-meta0.4.0d12.x86_64pigsty11.4 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-18-pg-meta0.4.0d12.aarch64pigsty11.4 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-18-pg-meta0.4.0d13.x86_64pigsty11.4 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-18-pg-meta0.4.0d13.aarch64pigsty11.4 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-18-pg-meta0.4.0u22.x86_64pigsty11.4 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-18-pg-meta0.4.0u22.aarch64pigsty11.4 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-18-pg-meta0.4.0u24.x86_64pigsty11.5 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-18-pg-meta0.4.0u24.aarch64pigsty11.5 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-18-pg-meta0.4.0u26.x86_64pigsty11.5 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~resolute_all.deb
postgresql-18-pg-meta0.4.0u26.aarch64pigsty11.5 KiBpostgresql-18-pg-meta_0.4.0-1PGSTY~resolute_all.deb
PackageVersionOSORGSIZEFile URL
pg_meta_170.4.0el8.x86_64pigsty16.3 KiBpg_meta_17-0.4.0-1PGSTY.el8.noarch.rpm
pg_meta_170.4.0el8.aarch64pigsty16.3 KiBpg_meta_17-0.4.0-1PGSTY.el8.noarch.rpm
pg_meta_170.4.0el9.x86_64pigsty15.7 KiBpg_meta_17-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_170.4.0el9.aarch64pigsty15.7 KiBpg_meta_17-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_170.4.0el10.x86_64pigsty15.9 KiBpg_meta_17-0.4.0-1PGSTY.el10.noarch.rpm
pg_meta_170.4.0el10.aarch64pigsty15.9 KiBpg_meta_17-0.4.0-1PGSTY.el10.noarch.rpm
postgresql-17-pg-meta0.4.0d12.x86_64pigsty11.4 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-17-pg-meta0.4.0d12.aarch64pigsty11.4 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-17-pg-meta0.4.0d13.x86_64pigsty11.4 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-17-pg-meta0.4.0d13.aarch64pigsty11.4 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-17-pg-meta0.4.0u22.x86_64pigsty11.4 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-17-pg-meta0.4.0u22.aarch64pigsty11.4 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-17-pg-meta0.4.0u24.x86_64pigsty11.5 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-17-pg-meta0.4.0u24.aarch64pigsty11.5 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-17-pg-meta0.4.0u26.x86_64pigsty11.4 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~resolute_all.deb
postgresql-17-pg-meta0.4.0u26.aarch64pigsty11.4 KiBpostgresql-17-pg-meta_0.4.0-1PGSTY~resolute_all.deb
PackageVersionOSORGSIZEFile URL
pg_meta_160.4.0el8.x86_64pigsty16.3 KiBpg_meta_16-0.4.0-1PGSTY.el8.noarch.rpm
pg_meta_160.4.0el8.aarch64pigsty16.3 KiBpg_meta_16-0.4.0-1PGSTY.el8.noarch.rpm
pg_meta_160.4.0el9.x86_64pigsty15.7 KiBpg_meta_16-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_160.4.0el9.aarch64pigsty15.7 KiBpg_meta_16-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_160.4.0el10.x86_64pigsty15.9 KiBpg_meta_16-0.4.0-1PGSTY.el10.noarch.rpm
pg_meta_160.4.0el10.aarch64pigsty15.9 KiBpg_meta_16-0.4.0-1PGSTY.el10.noarch.rpm
postgresql-16-pg-meta0.4.0d12.x86_64pigsty11.4 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-16-pg-meta0.4.0d12.aarch64pigsty11.4 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-16-pg-meta0.4.0d13.x86_64pigsty11.4 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-16-pg-meta0.4.0d13.aarch64pigsty11.4 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-16-pg-meta0.4.0u22.x86_64pigsty11.4 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-16-pg-meta0.4.0u22.aarch64pigsty11.4 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-16-pg-meta0.4.0u24.x86_64pigsty11.5 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-16-pg-meta0.4.0u24.aarch64pigsty11.5 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-16-pg-meta0.4.0u26.x86_64pigsty11.5 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~resolute_all.deb
postgresql-16-pg-meta0.4.0u26.aarch64pigsty11.5 KiBpostgresql-16-pg-meta_0.4.0-1PGSTY~resolute_all.deb
PackageVersionOSORGSIZEFile URL
pg_meta_150.4.0el8.x86_64pigsty16.3 KiBpg_meta_15-0.4.0-1PGSTY.el8.noarch.rpm
pg_meta_150.4.0el8.aarch64pigsty16.3 KiBpg_meta_15-0.4.0-1PGSTY.el8.noarch.rpm
pg_meta_150.4.0el9.x86_64pigsty15.7 KiBpg_meta_15-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_150.4.0el9.aarch64pigsty15.7 KiBpg_meta_15-0.4.0-1PGSTY.el9.noarch.rpm
pg_meta_150.4.0el10.x86_64pigsty15.9 KiBpg_meta_15-0.4.0-1PGSTY.el10.noarch.rpm
pg_meta_150.4.0el10.aarch64pigsty15.9 KiBpg_meta_15-0.4.0-1PGSTY.el10.noarch.rpm
postgresql-15-pg-meta0.4.0d12.x86_64pigsty11.4 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-15-pg-meta0.4.0d12.aarch64pigsty11.4 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~bookworm_all.deb
postgresql-15-pg-meta0.4.0d13.x86_64pigsty11.4 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-15-pg-meta0.4.0d13.aarch64pigsty11.4 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~trixie_all.deb
postgresql-15-pg-meta0.4.0u22.x86_64pigsty11.4 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-15-pg-meta0.4.0u22.aarch64pigsty11.4 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~jammy_all.deb
postgresql-15-pg-meta0.4.0u24.x86_64pigsty11.5 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-15-pg-meta0.4.0u24.aarch64pigsty11.5 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~noble_all.deb
postgresql-15-pg-meta0.4.0u26.x86_64pigsty11.5 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~resolute_all.deb
postgresql-15-pg-meta0.4.0u26.aarch64pigsty11.5 KiBpostgresql-15-pg-meta_0.4.0-1PGSTY~resolute_all.deb

Source

pig build pkg pg_meta;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install pg_meta;		# install by package name
pig install meta;		# install by extension name

pig install meta -v 19;   # install for PG 19
pig install meta -v 18;   # install for PG 18
pig install meta -v 17;   # install for PG 17
pig install meta -v 16;   # install for PG 16
pig install meta -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION meta;

Usage

meta: simplified system catalog for PostgreSQL

meta provides a normalized, human-friendly system catalog with common names for views and columns, sitting on top of pg_catalog and information_schema.

System Catalog Views

The extension creates approximately 30 views in the meta schema:

-- List all tables
SELECT * FROM meta.table;

-- List all columns
SELECT * FROM meta.column;

-- List all views
SELECT * FROM meta.view;

-- List schemas
SELECT * FROM meta.schema;

-- List functions
SELECT * FROM meta.function;

-- List extensions
SELECT * FROM meta.extension;

-- List triggers
SELECT * FROM meta.trigger;

-- List foreign keys
SELECT * FROM meta.foreign_key;

-- List constraints
SELECT * FROM meta.constraint_check;
SELECT * FROM meta.constraint_unique;

-- List types
SELECT * FROM meta.type;

-- List roles
SELECT * FROM meta.role;

-- List sequences
SELECT * FROM meta.sequence;

-- List operators
SELECT * FROM meta.operator;

-- List policies
SELECT * FROM meta.policy;

Available Views

cast, column, connection, constraint_check, constraint_unique, extension, foreign_column, foreign_data_wrapper, foreign_key, foreign_server, foreign_table, function, function_parameter, operator, policy, policy_role, relation, relation_column, role, role_inheritance, schema, sequence, table, table_privilege, trigger, type, view

Meta-Identifiers

The extension provides composite types that serve as “soft” primary keys to identify PostgreSQL objects by name (tables, columns, types, etc.) rather than by OID.

Catalog Triggers (Optional)

With the optional meta_triggers extension, views become updatable, enabling DDL via DML:

-- Create a table via INSERT
INSERT INTO meta.table (schema_name, name) VALUES ('public', 'foo');

Table reader