PostgreSQL is an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
Versions currently available for order are as follows:
- On shared (DEV) cluster: PostgreSQL version 15
- On dedicated plans: PostgreSQL versions 10, 11, 12, 13, 14 and 15
By default, Clever Cloud performs a free backup every day, with a retention of seven days. Retention and frequency can be customized for Premium customers.
Each backup can be found in the add-on dashboard in the web console, along with the credentials.
Some applications require a non-empty database to run properly. If you want to import your SQL dump, you can use several methods:
- WebGUI (Adminer)
- Command line tool for PostgreSQL administration like
- Any PostgreSQL client such as pgAdmin
A proxy serves all dedicated PostgreSQL databases. In some cases, this can add some latency between applications and their database. If this is an issue, you can generate a direct hostname and port for the add-on to bypass the proxy, using the “Generate direct hostname and port” button in the add-on dashboard.
Generating direct access adds new variables to the add-on’s environment, allowing connections without going through the proxy.
Direct access doesn’t persist after migrating a database. Manually re-generate direct host name and port after a migration to allow applications linked through direct access to connect to the database.
Such a limitation doesn’t exist when using proxy access.
Encryption at rest is available on PostgreSQL. You can find more information on the dedicated page
If you try to list the databases on the shared cluster, you will see the names of the databases of all other users of the cluster. This is normal behaviour. Rest assured, permissions are set properly, meaning no one but your user can read or write data to your database.
This referencing does not exist for dedicated databases.
Pgpool-II is a proxy software that sits between PostgreSQL servers and a PostgreSQL database client.
You can read the official project page for more information.
You can learn more about Pgpool-II on the dedicated documentation page
PostgreSQL databases managed by Clever Cloud comes with these extensions:
|Administrative functions for PostgreSQL
|Functions for autoincrementing fields
|Support for indexing common datatypes in GIN
|Support for indexing common datatypes in GiST
|Data type for case-insensitive character strings
|Data type for multidimensional cubes
|Connect to other PostgreSQL databases from within a database
|Text search dictionary template for integers
|Text search dictionary template for extended synonym processing
|Calculate great-circle distances on the surface of the Earth
|Foreign-data wrapper for flat file access
|Determine similarities and distance between strings
|Data type for storing sets of (key, value) pairs
|Hypothetical indexes for PostgreSQL
|Functions for tracking who changed a table
|Integer aggregator and enumerator (obsolete)
|Functions, operators, and index support for 1-D arrays of integers
|Data types for international product numbering standards
|Large Object maintenance
|Data type for hierarchical tree-like structures
|Functions for tracking last modification time
|Inspect the contents of database pages at a low level
|Examine the shared buffer cache
|Examine the free space map (FSM)
|Track planning and execution statistics of all SQL statements executed
|Text similarity measurement and index searching based on trigrams
|Show row-level locking information
|Show tuple-level statistics
|PL/CoffeeScript (v8) trusted procedural language
|PL/LiveScript (v8) trusted procedural language
|PL/pgSQL procedural language
|PostGIS geometry and geography spatial types and functions
|PostGIS raster types and functions
|PostGIS tiger geocoder and reverse geocoder
|PostGIS topology spatial types and functions
|Foreign-data wrapper for remote PostgreSQL servers
|Functions for implementing referential integrity (obsolete)
|Data type for representing line segments or floating-point intervals
|Information about SSL certificates
|Functions that manipulate whole tables, including crosstab
|Triggered change notifications
|Text search dictionary that removes accents
|Generate universally unique identifiers (UUIDs)
|XPath querying and XSLT
In the Console’s Ticket Center, you can ask our support team to add any of these extensions for you:
|Job scheduler for PostgreSQL
|Unit testing for PostgreSQL
|Vector data type and ivfflat and hnsw access methods
|Enables scalable inserts and complex queries for time-series data (Community Edition)
Autovacuum is automatically enabled on PostgreSQL add-ons.
The autovacuum will proceed when a given percentage of rows of a table will be updated/inserted/deleted.
Usually this threshold is set to 20%.
If you want to use pg_activity on a PostgreSQL add-on, but you encounter the following error
Exception: Must be run with database superuser privileges., you need to add the
--rds flag when you start it.