Docs

Database: connection, compute, disk and backups

Connect to your project’s Postgres directly or through the pooler, choose and resize compute, read disk use, and recover data with daily backups and replicas.

Updated Oct 17, 2026

Every project has its own Postgres database. The Database group under Project settings has four pages: Connection, Compute & disk, Pooling & timeouts (Pooling and timeouts) and Backups & recovery.

Functions, serverlessServers, migrationsData APIapps with the anon keyPooledPgBouncer, transactionmodeDirectdb.<org-id>.sovarias.inGatewayrules + row securityPostgresyour project

#Connection

Pick Pooled or Direct; the page shows the full URI, a ready psql command and each part (host, port, database, user).

Every database in an organization is reached at db.<org-id>.sovarias.in, port 5432, over TLS (sslmode=require). The user and database name are your project’s own; copy the exact strings from Connect › Database rather than typing them.

TypeUse it forAvoid it for
Pooled (transaction mode)Functions, edge runtimes, serverless and anything that opens many short connections.Session features: LISTEN/NOTIFY, session SET, prepared statements and advisory locks held across transactions.
DirectMigrations, long-lived servers, admin tools, LISTEN/NOTIFY.Thousands of short-lived connections — you’ll hit the connection limit.
psql "postgresql://<db-user>:<password>@db.<org-id>.sovarias.in:5432/<database>?sslmode=require"

The password is stored encrypted and never shown again. Reset password issues a new one and shows it once — copy it then. Apps using the old password must be updated; their connections fail on the next connect.

#Compute & disk

Compute sizes as cards, then availability and disk panelsCompute sizes as cards, then availability and disk panels
Compute & disk

Each card is one instance size: vCPUs, memory, connections, disk and the hourly price. Your plan includes one size; larger ones are billed hourly against your compute credits. Resize asks you to confirm and restarts the database with the new size — expect a short interruption, and do it outside busy hours. On Free the size is fixed; sizes your plan can’t use are disabled.

sov governance db-resize <org-id> <project-id> --compute-size medium

Disk follows the compute size. The meter shows used versus available; to get more disk, move to a larger size.

FreeProUltraTeamEnterprise
Database disk500 MB8 GB25 GB100 GB1 TB
Concurrent database connections202005002,00010,000
Active databases1110100500
Tables1002,00010,00050,000200,000
Database extensionsStandardAllAllAllAll custom

#Availability

FeatureWhat it does
Pause when idleFree databases pause after a week without requests; the next request resumes them in a few seconds. Paid plans never pause.
Sleep when idleA database server nobody has connected to for a while is stopped to free memory: staging, branch and preview databases after 3 days, Free projects after 14. Paid production databases never sleep. The next request or connection wakes it in a few seconds; backups keep their schedule.
High-availability failoverA standby copy of your database in another zone that takes over if the primary fails. Our team sets it up on request and agrees the switch-over time with you. Request it under Networking and availability add-ons.
Isolated computeThe database runs on hardware no other customer shares.
FreeProUltraTeamEnterprise
Days without requests before the database is paused (0 = never); the next request resumes it7 daysNeverNeverNeverNever
High-availability failover (when multi-server redundancy is available)———✓✓
Isolated compute cluster (set up on request)———✓✓
Uptime targetBest effortBest effortBest effortBest effortBest effort

Asleep databases

A sleeping database shows Asleep on the Datastore and Environments pages with this notice: “This database is asleep; it wakes on the next request, which takes a few seconds.” Wake now starts it at once. Through the API the first requests get 503 PROJECT_MAINTENANCE with reason: "asleep" and a short Retry-After; the SDKs retry on their own, so apps see a slower first call rather than an error. A server sleeps only when every database on it is idle: a paid project's staging and branch databases share production's server, so they stay awake with it.

#Backups & recovery

Daily backups list, point-in-time recovery and read replicasDaily backups list, point-in-time recovery and read replicas
Backups & recovery
FeatureWhat it does
Daily backupsA logical backup (pg_dump) every day, encrypted, kept 7 days on Free, 14 on Pro and 30 on higher plans. Download one to restore it or before risky changes.
Point-in-time recoveryRestore the whole database to any second in the plan's window (Pro 7 days up to Enterprise 35). Shows the earliest and latest moment; Check recovers a copy without changing anything; Restore asks you to type the moment's confirmation. Older databases need one restart to turn it on. See Backups and recovery.
Read replicasStreaming read-only copies of a dedicated database (Pro and up) for reporting, analytics and read-heavy traffic; writes still go to the primary. Each uses your database role and password on its own port.

How to restore a backup, and which tool to use for which mistake: Backups and recovery.

sov governance db-backups        <org-id> <project-id>   # list backups
sov governance db-backup-trigger <org-id> <project-id>   # take one now

#Read replicas

Add replica copies the database with a base backup (a few seconds for small databases, longer for large ones; the replica shows *provisioning* until then) and keeps it current by streaming replication — usually well under a second behind. The panel shows how far behind each replica is. Connect with the replica's connection string and your usual database password; any write is refused there. Removing a replica deletes its copy. Replicas run next to the primary on its host.

sov db replicas add        # starts a replica; check it with: sov db replicas list
sov db replicas list       # status, connection string, how far behind
sov db replicas remove <replica-id>
FreeProUltraTeamEnterprise
Point-in-time recovery windowNever7 days14 days28 days35 days
Read replicas per project database—12510

#Coming from Firebase or Supabase?

PlatformWhat this is called there
SupabaseSupabase compute and disk
SovariaDatabase: connection, compute, disk and backups

Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.