Good to know

Running PostgreSQL on Wodby

On Wodby, PostgreSQL runs as a single server inside the app environment, with its data on a volume. Wodby creates the database and its user, backs the database up as a SQL dump, and restores it by import.

Named after the app and environment

The database and its user take their names from the app and the app environment, and the database uses UTF-8 encoding. Further databases and users are added on Wodby, not by the application.

Tune the server with variables

Connection limits, memory settings, and the time zone are variables on the PostgreSQL service. For a setting that has no variable, override the service's config file. Either way the change applies with the next deployment.

Leave table rows out of a backup

A backup option takes a list of table patterns. Matching tables keep their definition in the dump and lose their rows, which suits tables whose contents you do not need to keep.

Imports accept common archives

A database import takes a backup or an uploaded file, including compressed and zip archives. Imported objects are handed to the database's owner role, even when the dump names roles this server does not have.

Who a session runs as

In a managed database a session acts as the database's owner role, so the current user is not the login name. Code that compares the two sees the owner role.

Read the PostgreSQL guide for setup steps, settings, and limits.

Overview

Technical profile of PostgreSQL

The versions are the ones you can select for PostgreSQL in a stack or an app environment. The service itself is published in revisions, and a stack references a specific revision.

Service type

Database service

Versions

18, 17

Data

Backups and data import for PostgreSQL

A container database belongs to its app, and Wodby also lists it under Databases. There you manage the databases on the server, their users, backups, and imports.

Manual and scheduled backups

Run a backup when you need one, or set a schedule in a backup preset. Wodby writes each archive to Wodby Blob Storage or to a bucket at a storage provider that you connect as an integration.

Import from an archive, a URL, or a backup

An import takes an uploaded archive, a public URL, or a completed backup of a compatible service.

Databases and users

Create database users in Wodby and choose which databases each user can access.

Deployment

Where the database runs

The database runs in the same cluster as the rest of its app environment: on Wodby Cloud, managed Kubernetes, or self-hosted Kubernetes. Wodby maintains the cluster on all three, so choose by where the data should live and what it should cost.
Wodby Cloud

Wodby hosts the cluster, so there is no cloud account or server to set up first.

Managed Kubernetes

Run the database in a cluster in your own cloud account, created and kept up to date by Wodby.

Self-hosted Kubernetes

Use your own VMs or dedicated servers when budget matters more than autoscaling. Wodby checks their packages for vulnerabilities and installs updates when you choose.

Related databases

Related database services

These database services belong to the same family as PostgreSQL. A managed database connection service runs no database server: it connects the stack to one that a cloud provider runs.

Configuration

PostgreSQL service configuration

The PostgreSQL service declares the following. Where a value can be changed, a stack sets it and each app environment can override it.

Volumes

Data

Configs

2 config files that a stack or an app environment can override.

Settings

1 setting that a stack or an app environment can change.

Based on this service

Services based on PostgreSQL

This catalog service inherits the configuration of PostgreSQL and changes parts of it. A service of your own can inherit from it the same way.