S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
self-hosting 2026-11-21

PostgreSQL 19 on Ubuntu: Install, Verify, Prove It Works

This guide is a companion to the video PostgreSQL 19 on Ubuntu: Install, Verify, Prove It Works, which is the starting point for everything described here. The video runs 99 seconds and, according to its description, installs PostgreSQL 19 on Ubuntu 24.04 from the official PostgreSQL APT repository, verifies the cluster is online, and proves it stores data.

No Prag research folder exists for this video, so this guide is built from the video description plus the official PostgreSQL documentation and repository wiki listed under Sources. Video claims and added research are kept separate throughout.

The video description states the install was tested as version 19.0-2.pgdg24.04+1 on 64-bit Ubuntu 24.04, that terminal frames in the video are recreations of a real test install with on-screen labels, and that install waits are shortened. Commands below come from the official PostgreSQL Ubuntu instructions instead, and every hands-on step is marked untested because this guide author did not execute an install.

Before you start

The video description lists the following prerequisites, repeated here without changes:

Added research: the official download page confirms Ubuntu does not necessarily ship the PostgreSQL version you want, and points users who need a different version to the PostgreSQL APT repository, which integrates with normal system updates. That is the reason this workflow adds the PGDG repository rather than installing from Ubuntu's default archive.

Before you start card from the video: fresh Ubuntu 24.04 64-bit with sudo and network access, a few hundred megabytes free, no prior Postgres required
Before you start card from the video: fresh Ubuntu 24.04 64-bit with sudo and network access, a few hundred megabytes free, no prior Postgres required (Still from the walkthrough video.)

Add the official repository and install

This section follows the video's first two steps, described as adding the official repository key and source, then installing postgresql-19. The commands below are the documented official method, not a transcript of the video, and are untested in this guide.

Source plus install terminal from the video: repository source added, apt-cache policy showing candidate 19.0-2.pgdg24.04+1, then install of postgresql-19
Source plus install terminal from the video: repository source added, apt-cache policy showing candidate 19.0-2.pgdg24.04+1, then install of postgresql-19 (Still from the walkthrough video.)

Verify the cluster is online

This section follows the video's verification step, which its description summarizes as checking the cluster with pg_lsclusters, confirming version 19.0, and checking the service starts on boot. The expected outputs below are untested and stated from the official tooling, not quoted from the video.

Prove it stores data

This section follows the video's final proof step, which the on-screen terminal shows as creating a test database and reading back one row. The statements below mirror the video frame, untested, and are not claimed to be the presenter's exact keystrokes beyond what the frame shows.

Prove it terminal from the video: server version 19.0 confirmed, test database created, one row reading back hello pg19
Prove it terminal from the video: server version 19.0 confirmed, test database created, one row reading back hello pg19 (Still from the walkthrough video.)

What is new in PostgreSQL 19

This section is added research only. The video description defers to its closing segment for what is new, and this guide does not attribute any of the following to the presenter. All items come from the PostgreSQL 19 release announcement and the release notes:

Sources

Watch the walkthrough

Watch on YouTube