PostgreSQL

The warehouse and the backbone of the control plane. One instance, multiple schemas, responsible for platform state plus analytics data.

Tier

Hot. PostgreSQL is part of the base install and stays running at all times. Expected memory: ~800 MB–1.2 GB depending on warehouse size.

Role

Everything writable lands here. The same PostgreSQL instance holds:

Each concern gets its own schema. Separation makes permissions cleaner without adding operational complexity.

Schema layout

platform       -- users, roles, sessions, audit
raw            -- Airbyte-landed tables, one per source
marts          -- dbt outputs: fct_*, dim_*, stg_*
airflow        -- Airflow's internal metadata tables
openmetadata   -- OpenMetadata's internal tables (if enabled)

Configuration

Credentials are collected at install time:

OrcheStack creates per-service PostgreSQL roles with scoped privileges so each downstream tool (dbt, Airflow, Metabase) authenticates as its own user with only the permissions it needs.