Documentation

PostgreSQL databases

Managed PostgreSQL with daily backups, point-and-click restore and forks, internal and external connections.

Rebasable runs managed PostgreSQL (versions 15, 16 and 17; 16 by default) for you: provisioning, credentials, backups, restores and upgrades of the plan.

Create a database

New → PostgreSQL, choose a name, a plan and a version. Or:

rebasable db create main-db --pg-version 16 --plan pg_basic_256

The Free plan is free forever: it is never deleted. A free database that has had no connections for 30 days is suspended, and you can resume it from the dashboard.

Connect

Each database has two connection strings (Database → Connect):

  • Internal URL: postgresql://user:password@main-db:5432/app. Use it from your services: it never leaves the private network and does not count as bandwidth.
  • External URL: for your laptop, BI tools or migrations. External access is off by default; turn it on and restrict it with an IP allowlist.
rebasable db connection main-db            # internal URL
rebasable db connection main-db --external # external URL
rebasable db psql main-db                  # open psql (external access must be on)

In blueprints, reference it with fromDatabase (property connectionString, host, port, user, password or database).

Backups

  • Daily backups on paid plans, kept for the retention of your plan (3 to 14 days, see pricing).
  • On-demand backups at any time: Backups → Create backup or rebasable backups create main-db.
  • Restore in place (we take a safety backup first) or into a new database (a fork), handy for staging or investigating a bad migration.
  • Download any backup as a pg_dump custom-format file.
rebasable backups list main-db
rebasable backups restore bkp_xxx --into-new main-db-fork
rebasable backups download bkp_xxx -o main.dump

Change plan or storage

Upgrade the plan or grow storage from Settings at any time; the database restarts briefly. Storage can grow but not shrink.

Credentials

Rotate credentials generates a new password. Services that use the internal URL through fromDatabase or a linked env var pick it up on their next deploy.

Extensions

Common extensions such as pgcrypto, uuid-ossp, citext, hstore, pg_trgm and unaccent are available with CREATE EXTENSION.