You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2026. It is now read-only.
Idea from AHA! hacker meetup — add PostgreSQL COMMENT ON TABLE and COMMENT ON COLUMN to all database objects, then embed the schema descriptions in semantic search for agent comprehension.
Motivation
Self-documenting schema: \dt+ and \d+ table_name show descriptions in psql
Background
Idea from AHA! hacker meetup — add PostgreSQL
COMMENT ON TABLEandCOMMENT ON COLUMNto all database objects, then embed the schema descriptions in semantic search for agent comprehension.Motivation
\dt+and\d+ table_nameshow descriptions in psqlCOMMENT ONis structure metadata — managed declaratively inschema/schema.sqlImplementation
Phase 1: Add comments to schema
COMMENT ON TABLEfor all ~75 tablesCOMMENT ON COLUMNfor key columns (primary keys, foreign keys, important fields)schema/schema.sql— pgschema dump captures thesePhase 2: Embed in semantic search
pg_catalog.pg_description/obj_description()Dependencies
Priority
Medium — nice-to-have, improves agent autonomy and developer experience