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
Five steps take you from nothing to a connected database you can recover. Each step links to the page that covers it in full.
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
Read the pages in order, or jump to the one you need.
Every question answered here
Each question has its own link you can share.
- What is managed PostgreSQL, and how is it different from running Postgres yourself?
- Where should I deploy my app and its Postgres database so I only manage one account?
- Can I use MySQL instead?
- Is my database reachable from the internet?
- Do I need connection pooling?
- Can I bring an existing database or connect an external one?
- Can I use it with Next.js or NestJS?
- Can a small agency keep each client’s database separate?
- How do I run migrations safely?
- Do I need point-in-time recovery, and how far back can I restore?
- What is the difference between snapshots and point-in-time recovery?
- What rollback features should a database offer when an AI agent works on it?
- What is a database fork?
- How do I test a migration on a copy of real data?
- Should I fork or restore in place?
- How do I add a Postgres database to an app built with Claude Code?
- Can my AI agent create or delete my database?
- How much does managed Postgres cost for a small app?
- How does Resilis Postgres pricing compare with Render, Railway, DigitalOcean and Heroku?
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.