4
Installation
Installation types
pre-build packages (preferred)
installation from source code
without installation (cloud services)
Extensions
provide additional features
installed separately
shipped with the server as modules and programs (~50 extensions)
The preferred option for installing PostgreSQL is via a package manager
(such as apt or rpm) using pre-built packages. This gives you a
comprehensive installation that is easy to support and upgrade. There are
packages available for most operating systems.
Another option is to build PostgreSQL from source code. This may be
necessary if you want to set up a non-standard configuration or deploy on an
exotic platform.
Besides, you can work with cloud-based managed databases that do not
require any installation at all. Such ready-to-use services are provided by all
major cloud platforms (Amazon RDS, Google Cloud SQL, Microsoft Azure).
In this course, we are going to use a virtual machine with Xubuntu 24 OS;
PostgreSQL 16 is installed from the package for this OS. In addition, the
installation is set up to start and stop PostgreSQL when the OS starts and
stops.
There are a lot of PostgreSQL extensions that add new database
functionality “on the fly”, without modifying the system core. About 50
extensions are included into the PostgreSQL distribution itself.
The list of available extensions and their installation status can be accessed
using the pg_available_extensions view.