How To Install PostgreSQL [Quickstart]

PostgreSQL, or Postgres, is a relational database management system that provides an implementation of the SQL querying language. It’s standards-compliant and has many advanced features like reliable transactions and concurrency without read locks.

This guide demonstrates how to quickly get Postgres up and running, from installing PostgreSQL to setting up a new user and database.

Ubuntu

22.04

How To Install PostgreSQL on Ubuntu

Learn How To Install PostgreSQL on Ubuntu
20.04

How To Install PostgreSQL on Ubuntu

Learn How To Install PostgreSQL on Ubuntu

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.