Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
DatabasesEditor's pick

PostgreSQL on a VPS

PostgreSQL is a mature open-source relational database with strong SQL standards support, JSONB, full-text search, replication and a deep extension ecosystem.

1 GBMinimum memory
Ubuntu 24.04 LTSBase image
5432/tcpPorts
PostgreSQL LicenseLicense

About PostgreSQL

PostgreSQL is an object-relational database developed by a global community under the permissive PostgreSQL License. It offers MVCC transactions, rich SQL with window functions and CTEs, JSONB documents, full-text search, table partitioning, and both streaming and logical replication.

Extensions such as PostGIS and pgvector turn the same server into a GIS engine or a vector store. A dedicated CloudSat VPS gives the database its own NVMe disk and memory, and a snapshot before each major upgrade gives you a restore point.

The server listens on port 5432 for local connections only, and you administer it through psql as the postgres system user.

What you get with PostgreSQL

  • MVCC transactions with full ACID guarantees
  • JSONB, arrays and full-text search in plain SQL
  • Streaming and logical replication
  • Declarative table partitioning
  • Extensions such as PostGIS, pgvector and pg_stat_statements

PostgreSQL use cases

  • Primary database for Django, Rails, Laravel or Node.js apps
  • Geospatial queries with PostGIS
  • Embedding search with pgvector beside relational data

After you deploy PostgreSQL

  1. Once the console reads Running, SSH in and open a shell with sudo -u postgres psql.
  2. Create a role and database per app, for example CREATE ROLE shop LOGIN PASSWORD '<secret>'; and CREATE DATABASE shop OWNER shop;.
  3. For remote apps, set listen_addresses in postgresql.conf, add a scram-sha-256 rule to pg_hba.conf, then systemctl restart postgresql.
  4. Open 5432 in a CloudSat firewall only to your application servers, and schedule pg_dump or WAL archiving.

PostgreSQL ports

Open these in your firewall if you use one: 5432/tcp PostgreSQL (localhost until you open it).

PostgreSQL FAQ

Which PostgreSQL version should I run?

PostgreSQL 18 is the newest major release, supported until November 2030, and each major version receives fixes for five years. Check yours with psql --version and plan major upgrades with pg_upgrade.

Can I add extensions like pgvector?

Yes. Install the extension package built for your PostgreSQL version with apt, then run CREATE EXTENSION vector; in the target database. PostGIS and most others follow the same pattern.

Disclaimer. The PostgreSQL project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

PostgreSQL on your own server.
Ready in under 5 minutes.

Pick a region and a size; the console shows the address as soon as it is up.

Every server delivered in under 5 minutesPay with crypto14-day money-back