How do I build a data catalog for my Postgres tables?
Bruin parses the SQL in each Postgres asset and builds column-level lineage with no manual mapping, then derives the asset inventory from the pipeline rather than from a separately maintained registry. Because it comes from parsing your project rather than from warehouse query logs, the lineage exists before the code runs, which is what lets bruin validate fail a pull request that would break something downstream. A catalog like OpenMetadata or Atlan covers more ground across tools Bruin does not run, but reconstructs lineage after the query has already executed.
Command
bruin lineageDefined in
SQL + YAML
Works with
Postgres + Bruin CLI
What you get
How to do it
- 1
Point Bruin at your Postgres project so it can parse every asset.
- 2
Run bruin lineage ./pipeline --asset <name> to see the graph for one asset.
- 3
Add descriptions to the columns people actually ask about, in the asset definition.
- 4
Run bruin validate to confirm every reference resolves.
- 5
Add bruin validate to CI so a breaking change fails in the pull request.
- 6
Expose the graph to agents with bruin mcp if you want AI answers grounded in it.
How it works in code
$ bruin lineage ./pipeline --asset mart.ordersRun bruin lineage and Bruin prints the column graph across your Postgres assets.
Worth knowing
Bruin only sees assets inside a Bruin pipeline. A Looker explore, a notebook, or a legacy job touching Postgres is invisible to it, so if coverage across tools you do not control is the requirement, use a catalog instead.
Other ways to do this
Bruin is not always the right answer. Here is where the alternatives are stronger.
| Option | When it is the better choice |
|---|---|
| Bruin | Use column-level lineage parsed from your Postgres pipeline SQL, available before a change merges rather than after it runs. |
| OpenMetadata | Open-source catalog with column-level lineage across many tools, not just Postgres assets you define in one framework. Heavier to operate. |
| Atlan | The strongest commercial catalog for organisation-wide governance with business stakeholders, glossary, and stewardship workflow. A different product category to a CI gate. |
| dbt | Free model-level lineage if your transformations are already in dbt. Column-level resolution needs a catalog or a paid tier. |
Common questions
How do I build a data catalog for my Postgres tables?
Bruin parses the SQL in your Postgres assets to build column-level lineage, then derives the asset inventory from the pipeline rather than from a separately maintained registry. Run bruin lineage against an asset to see it.
Does Postgres lineage require manual mapping in Bruin?
No. The lineage is derived from parsing the SQL in each asset, so it updates when the code does and cannot drift the way a hand-maintained catalog entry does.
How is this different from a data catalog on Postgres?
A catalog reconstructs lineage from warehouse query logs, which covers every tool that touched the warehouse but only after queries have run. Parsing the project gives lineage before the change ships, which is what makes a pre-merge CI gate possible. Large organisations usually want both.
Related use cases
Build a data catalog for Snowflake
How do I build a data catalog for my Snowflake tables?
Catalog by warehouseBuild a data catalog for BigQuery
How do I build a data catalog for my BigQuery tables?
Catalog by warehouseBuild a data catalog for Databricks
How do I build a data catalog for my Databricks tables?
About Bruin
What is Bruin?
Bruin is an open-source, AI-powered data platform. One project covers the whole path from source to answer: data ingestion (with Bruin ingestr), SQL and Python transformations, quality checks, column-level lineage, a data catalog and scheduling. On top of that data, an AI data analyst answers questions in Slack, Microsoft Teams, Google Chat, WhatsApp, Discord, Telegram, email or the browser, and builds dashboards from a prompt.
Pipelines are plain SQL, Python and YAML files in your own Git repository, and the work runs inside your own warehouse: Snowflake, BigQuery, Databricks, Redshift, Postgres, ClickHouse, DuckDB and others. The Bruin CLI is open source under Apache 2.0 and runs on a laptop, in CI or on-prem. Bruin Cloud is optional and adds scheduling, the AI data analyst, governance, SSO and audit logs.
For lineage and governance that means column-level lineage, owners and a glossary that come from the pipeline code itself, so they stay current without a separate catalog to feed.
- Replaces
- Separate tools for ingestion, transformation, orchestration, data quality, cataloguing and BI
- Open source
- Bruin CLI under Apache 2.0; Bruin ingestr source-available under the Functional Source License
- Your data
- Stays in your warehouse; pipelines stay in your Git repository
- Security
- ISO/IEC 27001:2022 certified and SOC 2 Type 2 attested
- Used by
- Data teams at Lessmore, StarBerry, NativeMinds, SCG, M8 Games and Fabrikatör
Why Bruin for lineage and governance
Column-level lineage from the SQL
Bruin extracts column lineage from SQL assets automatically. Python assets declare their upstream columns.
Across pipelines
Asset URIs connect pipelines and repositories, and Bruin Cloud shows every pipeline and the dependencies between them.
Owners and meaning on every column
Owners, descriptions, domains, tags and glossary terms live in the same files as the code.
Impact before you change
See what is downstream of a table or column before you rename or drop it.
How it works
01
Write the pipeline
Write SQL and Python assets as usual; dependencies come from the SQL.
02
Inspect it locally
Run bruin lineage --full on any asset to see everything upstream and downstream.
03
See it across teams
Connect the repository to Bruin Cloud for the lineage view across every pipeline.
Know what breaks before you ship it
Bruin CLI and ingestr are on GitHub.
A demo walks through your own data.