{"id":14063372,"url":"https://github.com/aquameta/meta","last_synced_at":"2025-07-29T15:32:49.599Z","repository":{"id":177749274,"uuid":"210498891","full_name":"aquameta/meta","owner":"aquameta","description":"PostgreSQL Extension: More friendly system catalog for PostgreSQL","archived":false,"fork":false,"pushed_at":"2024-12-16T21:42:01.000Z","size":923,"stargazers_count":23,"open_issues_count":14,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-16T22:44:19.286Z","etag":null,"topics":["catalog","information-schema","meta","pg-catalog","postgresql","postgresql-extension"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aquameta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-24T02:57:07.000Z","updated_at":"2024-12-16T22:36:04.000Z","dependencies_parsed_at":"2023-11-16T00:23:18.377Z","dependency_job_id":"77876f3f-b5ab-4206-906c-699f2dce2af6","html_url":"https://github.com/aquameta/meta","commit_stats":null,"previous_names":["aquameta/meta"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aquameta/meta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquameta%2Fmeta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquameta%2Fmeta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquameta%2Fmeta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquameta%2Fmeta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aquameta","download_url":"https://codeload.github.com/aquameta/meta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquameta%2Fmeta/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267709605,"owners_count":24131922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["catalog","information-schema","meta","pg-catalog","postgresql","postgresql-extension"],"created_at":"2024-08-13T07:03:18.418Z","updated_at":"2025-07-29T15:32:49.276Z","avatar_url":"https://github.com/aquameta.png","language":"PLpgSQL","funding_links":[],"categories":["PLpgSQL"],"sub_categories":[],"readme":"Meta: Simplified System Catalog for PostgreSQL\n==============================================\n\n# Overview\n\nSystem catalogs are great, because they provide a data-centric view into the database's structure.\nPostgreSQL has two system catalogs, `pg_catalog` and `information_schema`, but each have some\ndrawbacks.  `pg_catalog` mirrors PostgreSQL's *internal* structure, and centers around `oid`, object\nidentifiers that aren't intended for \"above the hood\" developers to know or care about.\n`information_schema` is part of the SQL standard, and is filled with many views and columns that\ndon't match PostgreSQL's terminology or features.\n\nThe goals with `meta` is to provide an \"above the hood\" system catalog for PostgreSQL that is\nnormalized and uses common names for views and columns.\n\nFeatures:\n\n- Meta System catalog:  ~30 views ([full list]()) that, under the hood, query and synthesize\n  `pg_catalog` and `information_schema`\n- Meta-identifiers:  A set of composite types that encapsulate variables necessary to identify\n  PostgreSQL objects (tables, columns, casts, types, etc.) by name, and serve as \"soft\" primary keys\n  to the views above.  See [meta-identifiers](generator/) for more.\n- Catalog triggers:  Optional [meta_triggers](https://github.com/aquametalabs/meta_triggers)\n  extension, which adds INSERT/UPDATE triggers on the catalog's views.  These triggers make it\n  possible to do DDL statements (e.g. `CREATE TABLE ...`) with an DML statement (e.g. `insert into\n  meta.table (name) values('foo'))`, similar to a schema diff and migration tool but with a\n  data-centric approach.\n\nStatus:\n\n- The catalog is still evolving.  The goal is to mirror PostgreSQL's architecture completely and\n  accurately, but we're still figuring out \"where to draw the lines\".\n- Most common PostgreSQL features are covered, but PostgreSQL is very large, and 100% coverage is\n  not complete.\n- Not every feature has read/write triggers\n\n# Install\n\nInstall the extension into PostgreSQL's `extension/` directory:\n```shell\ncd meta/\nmake\nsudo make install\n```\n\nFrom a PostgreSQL shell, install the `hstore` extension in schema `public`.\n\n```sql\nCREATE EXTENSION hstore SCHEMA public;\n```\n\nFinally, install the meta extension:\n```sql\nCREATE EXTENSION meta;\n```\n\nOptionally, install the [meta_triggers](https://github.com/aquametalabs/meta_triggers) extension, to make views updatable.\n\n# Documentation\n\n## Meta-Identifiers Type System\n\nSee [identifiers](generator/).\n\n\n## System Catalog\n\nThe system catalog contains the following views:\n\n- cast\n- column\n- connection\n- constraint_check\n- constraint_unique\n- extension\n- foreign_column\n- foreign_data_wrapper\n- foreign_key\n- foreign_server\n- foreign_table\n- function\n- function_parameter\n- operator\n- policy\n- policy_role\n- relation\n- relation_column\n- role\n- role_inheritance\n- schema\n- sequence\n- table\n- table_privilege\n- trigger\n- type\n- view\n\n![meta schema diagram](https://raw.githubusercontent.com/aquametalabs/meta/master/doc/meta-schema-diagram.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faquameta%2Fmeta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faquameta%2Fmeta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faquameta%2Fmeta/lists"}