Video | Tableau | Data engineering | Data prep

How to set up a Postgres database on your Windows 10 PC

I'm ditching Excel demos and setting up a real Postgres database so my tutorials actually reflect what you'll hit at work.

Watch on YouTube
  • Postgres is a solid choice for a local database because it's open source, common in enterprise set-ups, and has good spatial support for Tableau
  • Download from postgresql.org via the download page rather than the homepage button, which pushes the enterprise solution instead of the free version
  • Note down your Windows username, password and any master password during install, as resetting them often means reinstalling
  • Use Stack Builder after installation to add the PostGIS spatial plugin and create a sample spatial database
  • You can connect to the local Postgres instance from Tableau and Tableau Prep using localhost, your database name, the postgres username and your master password

I walk through setting up a free local Postgres database on Windows so you have something more realistic than Excel to practise Tableau and Tableau Prep against.

Most demos connect Tableau straight to Excel, which doesn't reflect how data lives at work. I set up Postgres from scratch, add spatial support, then prove it works by connecting Tableau and Tableau Prep to it.

The Breakdown
  1. Why Postgres 0:00

    I picked Postgres because it's open source, turns up repeatedly in enterprise setups, and has strong spatial support in Tableau. Any similarly common database would teach you the same lessons, but this makes tutorials closer to real working conditions than an Excel file.

  2. Download the free installer, not the enterprise one 1:59

    Go to the download page on postgresql.org rather than the homepage button, which pushes you toward the paid enterprise solution. Pick your platform and, unless you need to match a specific server elsewhere, the version doesn't matter much for local use.

  3. Run the install and record your credentials 3:19

    Before installing, have your Windows username/password and a password manager ready, because you'll be asked to set a master password. Write everything down as you go — forgetting these passwords usually means reinstalling from scratch rather than any easy reset.

  4. Use Stack Builder to add the spatial plugin 5:06

    Once the base install finishes, Stack Builder launches and lets you add optional components. Select the spatial plugin (needed if you want to test Tableau's spatial capabilities) and let it create a sample spatial database for you — you can also skip this and add plugins later if you don't need them now.

  5. Verify everything's running in pgAdmin 8:33

    Open pgAdmin, enter your master password, and check the server and schemas are visible and populated. This confirms the install actually worked before you try connecting from Tableau.

  6. Connect from Tableau and Tableau Prep 9:23

    In either tool, choose Postgres as the connector and supply localhost, your database name, the postgres username and your master password. This is the same connection pattern you'd use against any live Postgres server, not just a local one.

  7. Publish a table back from Tableau Prep 11:44

    You can build a flow in Tableau Prep, connect to a database table output, and choose to replace rather than append data on each run. Running the flow writes a new table into the database, which you can then verify in pgAdmin and reconnect to from Tableau.

Worth Knowing
  • The homepage download button on postgresql.org steers you to the enterprise product — use the dedicated download page for the free version
  • Read every prompt during the Stack Builder install carefully, since bundled installers can sneak in extra software options
  • Losing your master password effectively means reinstalling, so store it in a password manager as soon as it's set
  • Writing to databases from Tableau Prep is noted as a newer feature at the time of recording, so behaviour may differ across versions
Use It When

Reach for this when you want your Tableau or Tableau Prep practice and tutorials to reflect a real database connection — with proper credentials, schemas and write-back — rather than relying on flat Excel files.

How this Rollup was made provenance & method

A Rollup is drafted by AI from the video's transcript, then reviewed and edited by Tim. Everything used to produce this one is listed below — the model, the exact prompt, and the source video — so the process is transparent and reproducible.

Transcription
On-device — NVIDIA Parakeet v3 for recent videos, OpenAI Whisper large-v3 for earlier ones. The transcript never leaves the machine or gets published.
Drafting
Claude Sonnet 5 in the cloud, from that transcript.
Prompt
The exact Rollup prompt (v2) — the full system prompt, unedited.
Source video
Watch on YouTube
Drafted
5 July 2026 at 09:38
Reviewed & edited
5 July 2026 at 09:41 · by Tim Ngwena

Model + prompt + video is everything you'd need to recreate a Rollup like this yourself. The one thing we don't share is the transcript.

Rights. The video and its transcript are the property of TN Media Ltd. Unauthorised use or download is prohibited. © TN Media Ltd.