{
   "name": "pg_relation_sql",
   "abstract": "Join relations by foreign keys in plain SQL",
   "description": "Turns every foreign key into a pair of set-returning SQL functions — a lookup that follows the reference and a list that collects the rows pointing back. Queries navigate declared relations instead of restating them in every ON, and the planner inlines the functions, so plans are node-for-node identical to hand-written joins. One plain SQL file: loading it creates the functions and an optional event trigger that keeps them in sync with DDL.",
   "version": "0.2.2",
   "date": "2026-08-12T16:53:22Z",
   "maintainer": [
      "Alexander Melnikov <asmmp@protonmail.com>"
   ],
   "release_status": "stable",
   "user": "asmgit",
   "sha1": "3736ceac6f3108cfc377da368c2b04ee593835d6",
   "license": "postgresql",
   "prereqs": {
      "runtime": {
         "requires": {
            "PostgreSQL": "11.0.0"
         }
      }
   },
   "provides": {
      "pg_relation_sql": {
         "abstract": "Relation functions generated from foreign keys",
         "docfile": "README.md",
         "file": "relation_sql.sql",
         "version": "0.2.2"
      }
   },
   "tags": ["foreign key", "join", "relations", "sql functions", "inlining", "schema", "code generation"],
   "resources": {
      "bugtracker": {
         "web": "https://github.com/asmgit/pg_relation_sql/issues"
      },
      "homepage": "https://github.com/asmgit/pg_relation_sql",
      "repository": {
         "type": "git",
         "url": "https://github.com/asmgit/pg_relation_sql.git",
         "web": "https://github.com/asmgit/pg_relation_sql"
      }
   }
}
