> For the complete documentation index, see [llms.txt](https://academy.cegedim.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.cegedim.cloud/databases/postgresql/postgresql-features.md).

# PostgreSQL - Features

## Architecture <a href="#postgresqlarchitecture-architecture" id="postgresqlarchitecture-architecture"></a>

### Supported versions <a href="#postgresqlarchitecture-supportedversions" id="postgresqlarchitecture-supportedversions"></a>

Currently supported versions of PostgreSQL are: 12, 13, 14, 15, 16, 17, 18.

### Upgrade <a href="#postgresqlarchitecture-upgrade" id="postgresqlarchitecture-upgrade"></a>

To upgrade your PaaS PostgreSQL, please refer to this page: [PostgreSQL - Upgrade](https://academy.cegedim.cloud/databases/postgresql/postgresql-upgrade.md)

### Topologies <a href="#postgresqlarchitecture-topologies" id="postgresqlarchitecture-topologies"></a>

cegedim.cloud supports two types of PostgreSQL deployments:

* **Standalone instance** mode is providing a standard PostgreSQL instance
* **High availability** is providing a multi-instance PostgreSQL deployment, with improved resilience and scalability capabilities

### Regions and Availability Zones <a href="#postgresqlarchitecture-regions" id="postgresqlarchitecture-regions"></a>

PostgreSQL is available in the two **cegedim.cloud** Regions, **EB** and **ET**. Each Region offers three Availability Zones: **A**, **B** and **C**.

| Region | Availability Zone | Data center                        |
| ------ | ----------------- | ---------------------------------- |
| **EB** | A                 | EB4 (Boulogne-Billancourt, France) |
| **EB** | B                 | EB3 (Boulogne-Billancourt, France) |
| **EB** | C                 | EB6 (Magny-les-Hameaux, France)    |
| **ET** | A                 | ET1 (Labège, France)               |
| **ET** | B                 | ET1 (Labège, France)               |
| **ET** | C                 | ET2 (Balma, France)                |

When a second instance is deployed (High availability), the instances are placed in different Availability Zones, always in two different data centers. See [Resiliency](#postgresqlarchitecture-resiliency).

### Resiliency <a href="#postgresqlarchitecture-resiliency" id="postgresqlarchitecture-resiliency"></a>

In the High availability topology, the two instances are always placed in two different data centers, so the PaaS is resilient to the loss of a data center.

Each instance is in a different Availability Zone:

```mermaid
graph LR
    subgraph dc1["Data center 1"]
        subgraph az1["Availability Zone"]
            n1["🐘 PostgreSQL"]
        end
    end
    subgraph dc2["Data center 2"]
        subgraph az2["Availability Zone"]
            n2["🐘 PostgreSQL"]
        end
    end

    n1 <-->|High availability deployment| n2

    style dc1 fill:#e8e8e8,stroke:#000,stroke-width:2px,color:#000
    style dc2 fill:#e8e8e8,stroke:#000,stroke-width:2px,color:#000
    style az1 fill:#cfe2ff,stroke:#0066cc,stroke-width:2px,color:#000
    style az2 fill:#cfe2ff,stroke:#0066cc,stroke-width:2px,color:#000
    style n1 fill:#1abc9c,stroke:#0e6655,stroke-width:2px,color:#000
    style n2 fill:#1abc9c,stroke:#0e6655,stroke-width:2px,color:#000
```

* On **EB**, any two Availability Zones are in two different data centers.
* On **ET**, Availability Zones A and B are both in ET1: one instance is therefore in zone C (ET2) and the other in zone A or B (ET1).

### High availability Diagram <a href="#postgresqlarchitecture-highavailabilitydiagram" id="postgresqlarchitecture-highavailabilitydiagram"></a>

```mermaid
graph TD
    customer["👤 Customer"]
    clusterip["🌐 Cluster IP"]

    subgraph dc1["Data center 1"]
        primary[("🗄️ Primary")]
    end
    subgraph dc2["Data center 2"]
        replica[("🗄️ Replica")]
    end

    customer -->|PostgreSQL protocol tcp 5432| clusterip
    clusterip --> primary
    clusterip -.->|Failover| replica
    primary <-->|Streaming Replication| replica

    style customer fill:#1abc9c,stroke:#0e6655,stroke-width:2px,color:#000
    style clusterip fill:#dde8f5,stroke:#000,stroke-width:2px,color:#000
    style dc1 fill:#e8e8e8,stroke:#000,stroke-width:2px,color:#000
    style dc2 fill:#e8e8e8,stroke:#000,stroke-width:2px,color:#000
    style primary fill:#1abc9c,stroke:#0e6655,stroke-width:2px,color:#000
    style replica fill:#e8820c,stroke:#a85a00,stroke-width:2px,color:#000
```

### Features <a href="#postgresqlarchitecture-features" id="postgresqlarchitecture-features"></a>

This section lists which features and capabilities are available to customers, and how to request or perform them:

<table data-header-hidden><thead><tr><th width="174"></th><th></th></tr></thead><tbody><tr><td><strong>Self-service</strong></td><td>Customer can perform action autonomously.</td></tr><tr><td><strong>On Request</strong></td><td>Customer can request for the action to be done to cegedim.cloud support team.</td></tr></tbody></table>

<table data-full-width="true"><thead><tr><th width="254">Feature</th><th width="155" data-type="checkbox">Self-service</th><th width="148" data-type="checkbox">On request</th><th>Comments</th></tr></thead><tbody><tr><td>SSH access</td><td>false</td><td>false</td><td>SSH access is disabled and reserved to cegedim.cloud administrators.</td></tr><tr><td>Change configuration file</td><td>false</td><td>true</td><td>On request via ticket. Only possible if it doesn't affect monitoring and resilience.</td></tr><tr><td>Install extension</td><td>true</td><td>false</td><td>PostgreSQL extensions can now be installed in self service using ITCare provided your deployment is in version 15 or higher. Otherwise, request ticket still applies.</td></tr></tbody></table>

## Extensions

It's possible to add functionality to PostgreSQL through so-called extensions. These extensions can add new types, additional functions for administrators and "classic" users alike, or even complete applications.

Some of these extensions are developed within the PostgreSQL project itself, so they keep pace with the evolution of the various PostgreSQL versions. You can find the list [here](https://www.postgresql.org/docs/current/contrib.html). Others are developed by third-party companies and follow their own pace, like [Timescaledb](https://docs.timescale.com/) or [Postgis](https://postgis.net/), to name but the best-known.

Once the PostgreSQL PaaS has been provisioned, you can install some of these extensions through ITCare. Below is the list of extensions supported by PostgreSQL PaaS from version 15 onwards:

* [btree\_gist](https://www.postgresql.org/docs/current/contrib.html)
* [citext](https://www.postgresql.org/docs/current/contrib.html)
* [fuzzystrmatch](https://www.postgresql.org/docs/current/contrib.html)
* [hstore](https://www.postgresql.org/docs/current/contrib.html)
* [pg\_trgm](https://www.postgresql.org/docs/current/contrib.html)
* [pgcrypto](https://www.postgresql.org/docs/current/contrib.html)
* [postgis](https://postgis.net/)
* [tablefunc](https://www.postgresql.org/docs/current/contrib.html)
* [timescaledb](https://docs.timescale.com/)
* [unaccent](https://www.postgresql.org/docs/current/contrib.html)
* [uuid-ossp](https://www.postgresql.org/docs/current/contrib.html)
* [vector](https://github.com/pgvector/pgvector)
* [postgres\_fdw](https://www.postgresql.org/docs/current/contrib.html)
* [oracle\_fdw](https://github.com/laurenz/oracle_fdw)

{% hint style="warning" %}
The installation of certain extensions may require a restart of PostgreSQL and therefore cause your PostgreSQL PaaS to be unavailable.
{% endhint %}

## Security <a href="#postgresqlarchitecture-security" id="postgresqlarchitecture-security"></a>

### Authentication <a href="#postgresqlarchitecture-authentication" id="postgresqlarchitecture-authentication"></a>

The customer is provided with a role named **admin** and chooses its password.

The password of this user is not stored nor saved by cegedim.cloud. Please be sure to save it in your own vault.

### Authorizations <a href="#postgresqlarchitecture-authorizations" id="postgresqlarchitecture-authorizations"></a>

The role provided to the customer has the following authorizations:

* LOGIN
* CREATEROLE
* CREATEDB

So, the customer may create dedicated application role and databases.

### Secured Transport <a href="#postgresqlarchitecture-securedtransport" id="postgresqlarchitecture-securedtransport"></a>

Secured transport is an option while provisioning and is available only from version 13 and above.

If secured transport is selected, TLS/SSL will be enabled for the PostgreSQL protocol and only a TLS connection from the clients will be accepted.

### Data location <a href="#postgresqlarchitecture-datalocation" id="postgresqlarchitecture-datalocation"></a>

All data is stored in cegedim.cloud data centers on encrypted storage arrays.

### Passwords <a href="#postgresqlarchitecture-passwords" id="postgresqlarchitecture-passwords"></a>

This section list the password management:

<table data-full-width="true"><thead><tr><th width="239">Passwords</th><th width="217" data-type="checkbox">Stored by cegedim.cloud</th><th width="184" data-type="checkbox">Stored by Customer</th><th width="100" data-type="checkbox">Enforced</th><th>Hashing algorithm</th></tr></thead><tbody><tr><td><strong>dedicated customer</strong> account</td><td>false</td><td>true</td><td>false</td><td>SCRAM-SHA-256</td></tr><tr><td><strong>ANY</strong> other account</td><td>false</td><td>true</td><td>false</td><td>SCRAM-SHA-256</td></tr><tr><td><strong>cegedim.cloud</strong> account</td><td>true</td><td>false</td><td>true</td><td>SCRAM-SHA-256</td></tr><tr><td><strong>monitoring</strong> account</td><td>true</td><td>false</td><td>true</td><td>SCRAM-SHA-256</td></tr></tbody></table>

## Backup <a href="#postgresqlarchitecture-backup" id="postgresqlarchitecture-backup"></a>

If backup is enabled during provisioning (enabled by default for a Service of Production type), the following backup policies will apply:

* Full backup once a week.
* Differential backups in between.
* Write-ahead (WAL) logs are archived.

Point-in-Time recovery is supported for 14 days on Object Storage.

## Monitoring <a href="#postgresqlarchitecture-monitoring" id="postgresqlarchitecture-monitoring"></a>

As part of our Managed Databases offer, PostgreSQL is specifically monitored on top of the underlying system to ensure service uptime and performances.

The following key PostgreSQL indicators are monitored and tracked:

* Connections
* Memory usage
* Transaction ID wraparound
* Health status


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://academy.cegedim.cloud/databases/postgresql/postgresql-features.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
