Skip to main content
PostgreSQL logo

Overview

Use PostgreSQL as a destination in Mage to export structured data from your pipelines directly into a PostgreSQL table. Mage supports both self-hosted and cloud-hosted PostgreSQL instances such as bit.io, Supabase, Render, and AWS RDS. Mage will automatically create the target table and insert pipeline output rows into it, with support for schema selection, lowercase column naming, and reserved keyword handling.

Configuration Parameters

Provide the following credentials when setting up PostgreSQL as a destination:

Optional Parameters


Notes

  • PostgreSQL is a widely supported open-source relational database—ideal for analytics, app backends, and transformations.
  • Ensure the user has CREATE TABLE, INSERT, and optionally CREATE SCHEMA privileges.
  • Mage supports exporting data to existing tables or creating new tables based on the pipeline output schema.
  • If your database is hosted on platforms like Heroku, AWS RDS, or bit.io, make sure the network settings allow inbound connections from Mage.