Canvas Docs
  • GETTING STARTED
    • Our docs have moved
    • Connect your data
      • App and database connectors
      • Snowflake
      • BigQuery
      • Redshift
      • Postgres
        • Use an SSH tunnel
      • Static IP Addresses
      • dbt
        • dbt Cloud
        • dbt via GitHub
    • Create your first canvas
    • Onboarding your team
  • Building canvases
    • Import data
    • Formulas
    • SQL
    • Joins
    • Pivot tables
    • Charts
    • Filters
      • Date filters
      • Text search filters
      • Multi-select filters
    • Canvas API
    • Events API
    • Embed Login API
  • Embeds
    • Public Embeds
    • Scopes
    • Walkthrough
    • PowerPoint embeds
  • Managing users
    • Assigning permissions
  • Security
    • Data security
    • Bug bounty program
    • Privacy policy
    • Terms of service
Powered by GitBook
On this page
  • Host
  • Port
  • Database
  • Username and Password
  1. GETTING STARTED
  2. Connect your data

Postgres

Connect your Postgres data to explore and visualize your data

Canvas requires the following fields to connect to your Postgres instance:

  1. Host

  2. Port

  3. Database

  4. Username and Password

Host

The public address of your Postgres instance. If you block public access to your database you will need to whitelist the following IP addresses in your database's security group:

  • 44.224.89.3

  • 35.80.194.138

  • 44.241.79.133

Port

Also available in the AWS console. This is 5432 by default.

Database

The database that you would like to work with in Canvas.

Username and Password

CREATE USER 'canvas_user' PASSWORD 'your-strong-password';

// Grant access to schema "public". Repeat this for any other schemas you want to access
GRANT USAGE ON SCHEMA "public" TO canvas_user;
GRANT SELECT ON ALL TABLES IN SCHEMA "public" TO canvas_user;
// This grants access to all future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA "public" GRANT SELECT ON TABLES TO canvas_user;

PreviousRedshiftNextUse an SSH tunnel

Last updated 2 years ago

To display your data, Canvas requires a user with usage grants on any schemas you want to access and select grants on any tables and views you want to access. Following the , we recommend creating a user for Canvas with the minimum set of permission necessary. The following script will create a user and grant it permissions for the schema public:

principle of least privilege