Hosted Postgres, bring-your-own setup, backfill tips, and provider-specific notes (Aurora, Supabase, Neon, self-hosted) are documented on the Turbo PostgreSQL sink page and apply to Mirror as well. This page covers Mirror-specific basics only.
Setting up a Postgres database
Both flows are documented on the Turbo Postgres page and apply to Mirror as well:- Goldsky-hosted Postgres. Provisioned from the web app (Sinks > New sink > Hosted Postgres, or inline in the pipeline create flow). Requires a Scale plan. Creating the database automatically adds the secret to your account, so there’s no separate
goldsky secret createstep. - Bring your own Postgres. Create a
goldsky_writerrole, make the database reachable from Goldsky, and store the connection string as a Goldsky secret.
Example: Mirror pipeline writing to PostgreSQL
This pipeline gets a real-time edge stream of raw logs straight into a Postgres table namedeth_logs in the goldsky schema, using the secret A_POSTGRESQL_SECRET.
Example PostgreSQL pipeline