meta_triggers
meta_triggers · Insert, update and delete triggers for the meta system catalog
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100570 | meta_triggers | meta_triggers | 0.5.0 | FEAT | BSD-2-Clause | SQL |
Usage
Sources:
meta_triggers makes selected views from Aquameta’s meta extension writable. Inserts, updates, and deletes against those catalog views are converted into real DDL or administrative commands, allowing metadata-driven tools to create and change database objects through rows.
Core Workflow
The extension is installed into the meta schema and requires meta:
The upstream SQL adds INSTEAD OF triggers and statement-building functions for many meta views, including schemas, types, sequences, tables, views, columns, foreign keys, functions, triggers, roles and memberships, privileges, row-security policies, constraints, extensions, foreign-data objects, casts, and event triggers. Exact writable fields differ by view; use the corresponding meta view definition as the object model.
Security and Transaction Behavior
Writes execute DDL with the privileges of the calling role and normally participate in the caller’s transaction. Treat write access to these views as administrative access: a row change can create or drop schemas, roles, functions, extensions, policies, or other database objects. The SQL constructs commands dynamically, so validate application input and grant privileges narrowly. meta_triggers is not a detached metadata store—the underlying PostgreSQL catalog is changed immediately.