Connect Tableau to a PostgreSQL database so you can visualize and analyze data in real time.
Direct connections let analysts build live dashboards without CSV exports, keeping metrics current and eliminating manual refreshes.
You need host, port (5432 by default), database name, user, password, and—if enforced—SSL mode and certificate files.
Download the official driver from Tableau’s site → run the installer → restart Tableau Desktop to load the new connector.
1.Open Tableau Desktop → Data ▸ New Data Source
2. Select PostgreSQL → fill in host, port, database, user, and password.
3. Tick Require SSL if your server enforces it.
4. Click Sign In → choose schema → drag tables to the canvas.
Yes. Click New Custom SQL, paste your query (e.g., join Orders
and Customers
), and press OK.
sslmode
sets encryption (prefer, require).application_name
tags sessions, helping DBAs trace Tableau traffic.
Run a quick viz: drag order_date
to Columns and total_amount
to Rows → confirm values match psql output.
Create a read-only role in PostgreSQL, restrict to the analytics schema, and enable connection pooling to avoid session floods.
See the section below—fix credentials typos and ensure the driver version matches Tableau’s requirements.
.
Yes. Install the identical PostgreSQL driver version on every Tableau Server node to prevent "unsupported driver" errors.
Absolutely. Set up a local tunnel (e.g., ssh -L 5433:db.internal:5432
) and point Tableau at localhost:5433
.
Extracts snapshot data into Tableau’s Hyper format, improving speed and isolating production DBs, but they require scheduled refreshes.