NEW Bare Metal Servers with 20G Dedicated Unmetered Bandwidth 20G Dedicated Unmetered Servers Read more STATUS

Install PostgreSQL 16 in One Click

Sep 28, 2026 3 min read

PostgreSQL 16 installs a production Postgres from the PostgreSQL project's own package repository, sets a strong password for the postgres superuser, and starts the service. You never pick that password: it's generated for you and waiting in the machine's credential vault.

New or rebuilt machines only. PostgreSQL 16 can't be added to a machine you're already running. It installs during the next rebuild (cloud) or reinstall (bare metal), and both erase the disk first, so the machine comes back as a fresh Debian or Ubuntu system with PostgreSQL 16 on top. Use it on a new machine or one you're ready to wipe, and back up anything you want to keep first. To add PostgreSQL 16 to a server that already holds your data, install it by hand instead.

What gets installed

  • PostgreSQL 16 from the official PostgreSQL apt repository, enabled at boot.
  • A generated password on the postgres role, stored in the vault as PostgreSQL 16 — postgres superuser password.

The card lists port 5432, but out of the box PostgreSQL only listens on localhost. Nothing outside the machine can reach it until you decide it should.

Install it

On a cloud instance, open its Apps tab, click Install on next rebuild on the PostgreSQL 16 card, then rebuild with a Debian or Ubuntu image. On a bare-metal server it's Install on next reinstall, then a reinstall with the App: PostgreSQL 16 post-install script ticked. The App Library guide covers the details, the status you'll see, and what to do if it fails.

The PostgreSQL 16 card in the App Library on a cloud instance's Apps tab, with its Debian / Ubuntu label and the Install on next rebuild button
The card on the Apps tab. The label shows which operating system it needs.
After clicking Install on next rebuild: a message that PostgreSQL 16 is staged and the VM must be rebuilt to install it, and postgresql listed as queued under Installs on this machine
Clicking the button only stages the app. The message tells you to rebuild and says the postgres superuser password will be waiting in the credential vault, and names the operating system to pick.
The Rebuild tab: a notice that 1 staged app will install during this rebuild (postgresql), above the Rebuild VM card warning that all data on the VM will be erased
The Rebuild tab lists the staged app above the warning that the rebuild erases the VM. Nothing is installed until you go ahead.

First steps once it's ready

On the machine itself, you don't need the password at all:

sudo -u postgres psql

Create a database and a user for your application rather than handing it the superuser:

CREATE USER app WITH PASSWORD 'choose-a-long-one';
CREATE DATABASE app OWNER app;

Allowing remote connections

Only do this if something off the machine really needs the database. Two files, then a restart:

# /etc/postgresql/16/main/postgresql.conf
listen_addresses = '*'

# /etc/postgresql/16/main/pg_hba.conf  (allow one address or range, not everyone)
host    app    app    203.0.113.0/24    scram-sha-256
systemctl restart postgresql

Then open 5432 in the firewall for that same range only. A database open to the whole internet gets found within hours.

Questions we get

  • Where's the superuser password? In the Credentials vault on the machine's Apps tab. Click Reveal.
  • Can I change it? Yes: ALTER USER postgres PASSWORD '...'; in psql. The vault won't know, so update your own password manager.
  • Where is the data? The standard location, /var/lib/postgresql/16/main.

Still stuck?

Open a support ticket with the machine and paste the install log from the Apps tab if it failed. We can see the install from our side.

Built for production

Why teams stay with Netrouting

We connect you to the Internet using network engineers (and not order takers) and hardware and infrastructure that is built to last, so we can pick up where you left off when you need us.

  • Expert-Level Support Our staff is available 24 hours a day, 7 days a week to handle network administration and systems management issues as they occur.
  • Scalable Solutions Build whatever depth or breadth your infrastructure needs and then scale as required.
  • Enhanced Security Enable 2-factor authentication and also limit by IP address from the control panel to secure your account.
  • Cost-Efficient Infrastructure You will always receive the best value from your investment as you will be optimized for budget without any compromise on Quality.