Nais Postgres reference ΒΆ

Experimental feature

This feature is an alpha feature, and is subject to API change, instability or removal. See the main Postgres page for more information.

This document describes all possible configuration values in the Postgres spec, commonly known as the postgres.yaml file.

extensions ΒΆ

Extensions to enable in the Postgres database.

Type: array
Required: false

Example

yaml

extensions[].name ΒΆ

Name of the Postgres extension to enable.

Type: string
Required: true

Example

yaml

highAvailability ΒΆ

HighAvailability adds a third instance and enables synchronous replication.

A cluster always runs a primary and a standby, so failover is available either way. What this adds is the guarantee that an acknowledged commit survives losing the primary, at the cost of write latency.

Type: boolean
Required: false

Example

yaml

majorVersion ΒΆ

MajorVersion of Postgres to use.

Type: enum
Required: true
Allowed values: 16, 17, 18

Example

yaml

resources ΒΆ

Resources configures compute and disk for the Postgres cluster.

Type: object
Required: false

Example

yaml

resources.cpu ΒΆ

Cpu is the CPU resources for the Postgres cluster.

Type: object
Required: false

Example

yaml

resources.diskSize ΒΆ

DiskSize is the disk size for the Postgres cluster.

Type: object
Required: false

Example

yaml

resources.memory ΒΆ

Memory is the memory resources for the Postgres cluster.

Type: object
Required: false

Example

yaml