Skip to main content

PostgreSQL

1. Overview​

The PostgreSQL add-on deploys a dedicated instance of the PostgreSQL relational database inside an environment, with ACID support, JSON, and automatic backups.

Use it when an application, Flow, or another add-on needs its own relational database, isolated from the others.

Catalog tags: Database, SQL.

2. Prerequisites​

  • A squad and an environment already selected on the Add-ons screen.

3. Deploy Step-by-Step​

The PostgreSQL deploy wizard has 4 steps:

Step 1 — General​

FieldRequiredDescription
Add-on NameYesName of the add-on within the environment. Lowercase letters, numbers, and hyphens only (3 to 63 characters). Example: my-postgres.

Step 2 — Admin User​

Defines the instance's superuser credentials, used by the admin console, backups, and the copilot.

FieldRequiredDescription
Admin UsernameYesPostgreSQL superuser. Default: postgres.
PasswordYesSuperuser password.
Database NameYesName of the database created on the instance. Default: postgres.

Step 3 — Backup​

Configures the instance's automatic backups. Backups are uploaded to Google Cloud Storage at the frequency defined by the cron expression, and the oldest ones are automatically purged once the retention limit is exceeded.

FieldRequiredDescription
Enable automatic backupsNoTurns automatic backups on/off. On by default.
Keep last N backupsIf backups are onNumber of most recent backups kept before purging the oldest ones. Default: 10.
Cron schedule (UTC)If backups are onCron expression (in UTC) that defines the backup frequency. Default: 0 2 * * * (every day at 02:00 UTC).

Step 4 — Database Resources (PostgreSQL)​

Defines the resources allocated to the instance.

FieldDefaultMaximum
Memory512Mi2Gi
CPU500m2000m
Disk Size5Gi20Gi

Clicking Deploy Add-on starts the deployment. The add-on then appears on the environment's My Add-ons tab.

4. FAQ​

Can automatic backups be turned off after deployment? No. The automatic backup setting is defined at deployment time and can't be turned off afterwards.

Where are backups stored and for how long? Retention is by count, not by time: you configure a number X of backups to keep (Keep last N backups) and the platform always keeps the X most recent ones, discarding older ones. How often those backups are generated is defined by the Cron schedule (UTC) field in Step 3.