Documentation

Docs / PostgreSQL

PostgreSQL docs: create, connect, migrate, restore

Resilis runs managed PostgreSQL for your app. It sits in the same project and environment as the app, stays private by default, reaches the app as a secret and can be restored to the minute before a bad migration or a mistaken agent change. This section covers creating and connecting a database, running migrations, backups and recovery, working with an AI agent, and pricing.

How managed PostgreSQL works on Resilis

You create a database in a project and an environment, the same place your apps live. Resilis provisions and runs it, and you choose the engine version, the CPU, memory and storage, and the region. Your app reaches it over an internal connection, and the connection value arrives as a sensitive environment variable, so it stays out of source control and logs.

Managed databases include snapshots, point-in-time recovery once continuous backups are on, connection pooling, a built-in browser for looking at tables and rows, and secret binding. Resilis also runs managed MySQL. The same project holds your apps, databases and object storage, under one plan and one bill.

Connected over MCP, an AI agent can create a database, bind it to an app, run migrations as bounded release jobs, check backup health and request a restore. It cannot delete a database on its own.

Quick start

What is managed PostgreSQL, and how is it different from running Postgres yourself?

Managed PostgreSQL means the platform creates and runs the database for you. On Resilis you choose the engine version, the CPU, RAM and disk, and the project and environment. The recommended default is PostgreSQL 17, and available versions depend on the selected target.

Running Postgres yourself leaves backups, recovery, connection handling and access to you. Managed databases here include snapshots, point-in-time recovery with continuous backups, connection pooling, a built-in browser and secret binding. You still keep independent copies of data you cannot replace.

Where should I deploy my app and its Postgres database so I only manage one account?

On Resilis the app and the managed database live in the same project and environment, under one organization with one plan and one bill. The plan fee becomes runtime credit that covers compute, persistent disk and databases.

Put the app and the database in the same project, environment and region so the internal connection resolves. You can deploy from a GitHub repository in the dashboard, or from local files through a connected agent.

Can I use MySQL instead?

Yes. Resilis supports managed PostgreSQL and MySQL, with recommended defaults of PostgreSQL 17 and MySQL 8.4. You create either in your project and environment and bind it to your app the same way.

The two engines use different protection mechanisms, so check the Backups view of a database to see what it offers.

Pages in this section

Every question answered here

Managed PostgreSQL on Resilis

Create a private PostgreSQL database in your project, bind it to your app and turn on continuous backups. The database draws from your runtime credit.

Get started About managed PostgreSQL