Master da Web
Managed PostgreSQL

Managed PostgreSQL in Brazil, ready for production

Create a PostgreSQL 18 or 17 database in a few minutes, on a machine of its own, with continuous backups, restore to any second of the past week, a connection pooler and TLS required. Use it with your serverless apps, your VPS instances or from anywhere, paying in reais.

  • Restore to any second in the last 7 days
  • A connection pooler and direct access for migrations
  • pgvector, PostGIS and 15 more extensions
  • Disk that grows without a restart, up to 1 TB

No lock-in: prepaid credit via Pix, boleto or card, billed by the second.

Versions
18 and 17
Restore
Any second of the last 7 days
Connections
Up to 3,000 through the pooler
Disk
Up to 1 TB, no restart
Starting at
R$106.60/month
Production-ready

Everything a production PostgreSQL needs, from the very first minute

You get the address and the password. Setup, tuning, backups, certificates and monitoring are handled by the platform.

Continuous backups and point-in-time restore

A full backup every night and every change archived within a minute: pick any second in the last 7 days and get a new database in that state, without touching the live one.

Connection pooler included

DATABASE_URL goes through PgBouncer, in transaction mode, with prepared statements: thousands of app connections become a few on the database. Migrations use the direct connection.

Always TLS, with a public certificate

The database refuses connections without TLS. Its hostname and certificate are its own, from Let's Encrypt, renewed automatically: sslmode=verify-full works without installing anything.

Metrics and slow queries in the console

Connections, transactions, cache, locks and deadlocks minute by minute for 30 days, the slow queries of the last 7 days and the 20 most expensive ones, with an alert when connections pass 80% of the limit.

Only those you allow can reach it

Your connected services, up to 50 VPS instances picked by name, up to 50 addresses or networks, or the mw db tunnel. The rest of the internet can't connect.

Grows with your app

More CPU and memory with a restart, right away or in the maintenance window. The disk grows without a restart and can grow on its own past 85%, up to the limit you set.

Extensions

17 extensions ready to go, from pgvector to PostGIS

Choose them when you create the database or enable them later, in the console, with mw db extensions or through the API: the extension is installed in every database on the instance.

pgvector: semantic search and RAG in the same database

Keep the embeddings next to your data and search by similarity with SQL, without running a separate vector database or syncing anything.

  • HNSW and IVFFlat indexes
  • Cosine, Euclidean and inner product distance
  • Works with LangChain, LlamaIndex and your ORM

SQL

-- enable it once: mw db extensions loja-prod vectorCREATE TABLE trechos (  id bigserial PRIMARY KEY,  conteudo text,  embedding vector(1536));CREATE INDEX ON trechos USING hnsw (embedding vector_cosine_ops); -- the 5 passages most similar to the questionSELECT conteudo FROM trechosORDER BY embedding <=> $1LIMIT 5;

Search and AI

vector
pgvector: embeddings and similarity search, with HNSW and IVFFlat indexes.
pg_trgm
Fuzzy search by trigrams, and LIKE '%term%' with an index.
unaccent
Accent-insensitive search: “acao” finds “ação”.
fuzzystrmatch
Levenshtein, Soundex and Metaphone for similar names.

Maps and geography

postgis
Geometries, distances, areas and spatial indexes: the standard for geographic data.
earthdistance
Distance on the Earth's surface between latitudes and longitudes.
cube
Multidimensional vectors; the foundation of earthdistance.

Data types

hstore
Key-value pairs in a single column.
citext
Case-insensitive text, for emails and logins.
ltree
Trees and hierarchies, like categories and org charts.
intarray
Integer arrays with operators and indexes.

Keys, indexes and analysis

pgcrypto
Hashes, encryption and gen_random_uuid().
uuid-ossp
UUIDs generated by the database.
btree_gin · btree_gist
GIN and GiST indexes that combine common types.
tablefunc
crosstab() for pivot tables.
pg_stat_statements
Always on: per-query statistics, which feed the console.

Need an extension that's not on the list? PostgreSQL on your own VPS instance gives you full control.

Connect

Connect to PostgreSQL from any language

The variables arrive ready, in the format your framework reads. On a connected service, you don't copy a single password.

  • Serverless apps

    Connect the database to a service and the variables arrive on their own, with a login just for that service, rotated every 90 days.

  • Your VPS instances

    Pick the instance in the list of allowed addresses: PostgreSQL keeps up when the instance's IP changes.

  • Your computer

    mw db connect opens the client; mw db tunnel, a local port for DBeaver or your ORM, without exposing the database.

db.js
// DATABASE_URL arrives on its own when the database is connected to the serviceimport pg from "pg" const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL }) const { rows } = await pool.query("SELECT now()")
Backup and restore

Go back to the exact second before things went wrong

A full backup every night and every change archived in between, encrypted with a key unique to your database.

Restores into a new database

The live database isn't touched. The new one can be a different size, and the console switches your services over to it in one click.

Automatic restore points

Before a deployment that runs migrations, an import, hibernation and deletion, a restore point is marked automatically.

Worry-free deletion

Deletion protection is on by default; a deleted database leaves its backups for 7 days, free of charge, so you can bring it back.

A dump whenever you want

Download a dump in PostgreSQL's format at any time; it stays available for download for 7 days.

What it's for

A PostgreSQL for every kind of project

The same database serves everything from the MVP to the system that brings in revenue every day.

01

SaaS and APIs

Transactions, foreign keys and JSONB in the same database, with the pooler absorbing connection spikes.

02

AI and RAG

Embeddings with pgvector next to your customers' data, in a single SQL query.

03

Stores and ERPs

Orders, inventory and finance, with restore to the second before a mistake.

04

Maps and logistics

PostGIS for routes, delivery radii and proximity queries.

05

Django, Rails and Node apps

The database these frameworks use most, with the variables in each one's format.

06

Reports and BI

A read-only user for Metabase, Power BI or your data team, with no risk to production.

Migration

Bring your PostgreSQL over without a headache

Copy straight from your current database or upload a file. A restore point is marked before every import.

  1. 1

    Create the database

    Choose the version, the size and the extensions your current database uses.

  2. 2

    Import

    Enter your current database's connection URL and the data comes straight from it, or upload a .dump, .sql or .sql.gz file.

  3. 3

    Switch the address

    Connect the database to the service or update the app's DATABASE_URL.

Terminal

$ mw db create loja-prod --extension vector --project loja # copied straight from your current database, reachable over the internet$ mw db import loja-prod --from-url "postgres://user:password@host.example.com:5432/app" # or from a file: if the upload drops, it resumes where it stopped$ mw db import loja-prod backup.dump

Bring it from wherever it runs today

  • Heroku Postgres
  • Amazon RDS
  • Supabase
  • DigitalOcean
  • Neon
  • Your VPS
Sizes and prices

How much managed PostgreSQL costs

A fixed monthly price, in reais, billed by the second: a database running all month is never billed past 730 hours.

Build your database

Choose the size and see the monthly price. You can change it later.

Size

R$1.90 per GB a month. It grows without a restart, up to 1,000 GB.

Estimated total

R$154.80/month

≈ R$0.2121 an hour

1 vCPU · 2 GB · 20 GB
R$154.80
  • Continuous backups and point-in-time restore
  • Connection pooler
  • TLS with a public certificate
  • Metrics and slow queries
Create PostgreSQL

Billed by the second, from when the database is ready. No lock-in.

  • A hibernated database pays only for its backup storage: R$0.45 per GB a month.
Compare

Managed PostgreSQL, on your VPS or on a cloud abroad

All three work. The difference is what's left to you and how much it costs, in reais.

Comparison of managed PostgreSQL, PostgreSQL installed on a VPS and international clouds
Master da WebInstalled on your VPSInternational clouds
Setup and tuningReady in a few minutes, tuned to its sizeUp to youReady
Point-in-time restoreYesYou set it up and test itYes
Connection poolerIncludedYou install PgBouncerSometimes billed separately
Billing currencyReais, no IOF taxReaisUS dollars, plus IOF tax
Where the data livesBelo HorizonteWherever the VPS isUsually outside Brazil
SupportIn PortugueseIn PortugueseUsually in English
FAQ

Frequently asked questions about managed PostgreSQL

What everyone asks before moving their database to the cloud.

Your PostgreSQL, ready in a few minutes

Choose the size, create your PostgreSQL and connect in a few minutes.