Available Versions
The following versions of PostgreSQL are currently available:Version | Status | End-Of-Life Date | Deprecation Date |
---|---|---|---|
13 | Available | November 2025 | February 2026 |
14 | Available | November 2026 | February 2027 |
15 | Available | November 2027 | February 2028 |
16 | Available | November 2028 | February 2029 |
17 | Available | November 2029 | February 2030 |
PostgreSQL releases new major versions annually, and supports major versions for 5 years before it is considered end-of-life and no longer maintained.
For databases on EOL versions, Aptible will prevent new databases from being provisioned and mark existing database as
DEPRECATED
on the deprecation date listed above. While existing databases will not be affected, we recommend end-of-life databases to be upgraded. The latest version offered on Aptible will always be available for provisioning, regardless of end-of-life date. Connecting to PostgreSQL
Aptible PostgreSQL Databases require authentication and SSL to connect.Connecting with SSL
Most PostgreSQL clients will attempt connection over SSL by default. If yours doesn’t, try appending?ssl=true
to your connection URL, or review your client’s documentation.
Most PostgreSQL clients will not attempt verification of the server certificate by default, please consult your client’s documentation to enable verify-full
, or your client’s equivalent option. The relevant documentation for libpq is here.
By default, PostgreSQL Databases on Aptible use a server certificate signed by Aptible for SSL / TLS termination. Databases that have been running since prior to Jan 15th, 2021 will only have a self-signed certificate. See Database Encryption in Transit for more details.
Extensions
Aptible supports two families of images for Postgres: default and contrib.- The default images have a minimal number of extensions installed, but do include PostGIS.
- The alternative contrib images have a larger number of useful extensions installed. The list of available extensions is visible below.
- In PostgreSQL versions 14 and newer, there is no separate contrib image: the listed extensions are available in the default image.
Extension | Avaiable in versions |
---|---|
plpythonu | 9.5 - 11 |
plpython2u | 9.5 - 11 |
plpython3u | 9.5 - 12 |
plperl | 9.5 - 12 |
plperlu | 9.5 - 12 |
mysql_fdw | 9.5 - 11 |
PLV8 | 9.5 - 10 |
multicorn | 9.5 - 10 |
wal2json | 9.5 - 17 |
pg-safeupdate | 9.5 - 11 |
pg_repack | 9.5 - 17 |
pgagent | 9.5 - 13 |
pgaudit | 9.5 - 17 |
pgcron | 10 |
pgvector | 15-17 |
pg_trgm | 12 - 17 |
aptible db:create
command.
Replication
Primary-standby replication is available for PostgreSQL. Replicas can be created using theaptible db:replicate
command.
Failover
PostgreSQL replicas can be manually promoted to stop following the primary and start accepting writes. To do so, run one of the following commands depending on your Database’s version: PostgreSQL 12 and higherData Integrity and Durability
On Aptible, PostgreSQL is configured with default settings for write-ahead logging. Committed transactions are therefore guaranteed to be written to disk.Configuration
A PostgreSQL database’spg_settings
can be changed with ALTER SYSTEM
. Changes made this way are written to disk and will persist across database restarts.
PostgreSQL databases on Aptible autotune the size of their caches and working memory based on the size of their container in order to improve performance.
The following settings are autotuned:
-
shared_buffers
-
effective_cache_size
-
work_mem
-
maintenance_work_mem
-
checkpoint_completion_target
-
default_statistics_target
Autovacuum
Postgres Autovacuum is enabled by default on all supported Aptible PostgreSQL managed databases. Autovacuum is configured with default settings related to Vacuum, which can be inspected with:Connection Security
Aptible PostgreSQL Databases support connections via the following protocols:-
For PostgreSQL versions 9.6, 10, 11, and 12:
TLSv1.0
,TLSv1.1
,TLSv1.2
-
For PostgreSQL versions 13 and 14:
TLSv1.2
-
For PostgreSQL versions 15, 16, and 17:
TLSv1.2
,TLSv1.3