---
title: "Managed PostgreSQL hosting and app databases"
description: "Managed PostgreSQL hosting with pgvector, plus TablesDB, DocumentsDB, and VectorsDB. Dedicated compute, backups, replicas, and PITR."
canonical: "https://appwrite.io/products/databases"
---

# Managed PostgreSQL and databases for every model

Run managed PostgreSQL next to tables, documents, and vectors. Connect with Prisma or psql, install pgvector, and scale dedicated compute with backups, replicas, and PITR.

[Start building](https://appwrite.io/sign-up?redirect=%2F)[View docs](https://appwrite.io/docs/products/databases)

acme / orders-prod

Connected

Databases

* orders-prod  
PostgreSQL
* app  
TablesDB
* catalog  
DocumentsDB
* embeddings  
VectorsDB
* legacy  
MySQL

Query

12 msRun

```
SELECT u.email, o.total, o.status
FROM orders o
JOIN users u ON u.id = o.user_id
WHERE o.created_at > now() - interval '1 day'
ORDER BY o.total DESC LIMIT 4;
```

| email          | total     | status   |
| -------------- | --------- | -------- |
| paige@acme.io  | $1,240.00 | paid     |
| walter@acme.io | $980.50   | paid     |
| happy@acme.io  | $642.10   | pending  |
| toby@acme.io   | $415.00   | refunded |

pgvector

cosine 0.92

Backups

PITR · 02:00 UTC

Five engines for tables, documents, vectors, and native SQL

* TablesDB
* DocumentsDB
* VectorsDB
* PostgreSQL
* MySQL

## Five engines, two categories

Appwrite DBs cover tables, documents, and vectors. Native DBs bring managed PostgreSQL and MySQL when you need full SQL control. Pick the model that matches your data, then operate every engine from the same Console and project.

Appwrite DBs

Managed databases built into Appwrite for app data, documents, and AI workloads.

#### TablesDB

Relational-style tables, columns, and indexes for structured data and complex queries.

Query.equal('plan', 'pro')

#### DocumentsDBBeta

Flexible JSON documents with filters and full-text search for evolving schemas.

{ "tags": \["new"\] }

#### VectorsDBBeta

Embeddings and similarity search for semantic retrieval and AI features.

\[0.12, \-0.48, 0.91, …\]

Native DBs

Dedicated managed PostgreSQL and MySQL engines you connect to with standard SQL clients.

#### PostgreSQLBeta

Managed PostgreSQL hosting with full SQL, pgvector, and portable schemas for Prisma, Drizzle, and existing tooling.

SELECT \* FROM orders;

#### MySQLBeta

Familiar MySQL compatibility for common relational apps and migrations.

SHOW TABLES;

[Databases docs](https://appwrite.io/docs/products/databases)

## Serverless or dedicated compute

Start on a shared serverless pool when you want speed and simplicity. Move to dedicated specifications when you need isolated resources, higher connection limits, and production options like replicas and PITR. Choose at create time or upgrade later.

[Databases docs](https://appwrite.io/docs/products/databases)

Serverless

Default

Shared pool. Fast to create, no capacity planning.

Shared compute pool

Upgrade compute

Dedicated

Production

Isolated compute with replicas, HA, and PITR.

CPU2 vCPU

Memory4 GB

Connections48 / 200

* Isolated resources
* Read replicas & HA
* Point-in-time recovery

Instant provisioning

Ideal for prototypes

## Replication and high availability

Dedicated databases run behind a connection pooler with a primary for writes and read replicas for query scale and failover. Choose asynchronous, synchronous, or quorum sync mode, then promote a replica when you need to move write traffic.

[Databases docs](https://appwrite.io/docs/products/databases)

PgDog

Connection pooler

Connections

48 / 200

orders-1

Read replica

Reads

CPU28%

Memory47%

orders-0

Primary instance

Writes

CPU42%

Memory61%

orders-2

Read replica

Reads

CPU31%

Memory44%

Promote to primary

Sync modeAsynchronousSynchronousQuorum

Replication lag

8 ms

HA enabled

## Backups and point-in-time recovery

Automate encrypted hot backups with policies, or create a manual backup when you need a snapshot now. Enable PITR on dedicated databases to restore to a specific moment after accidental deletes, failed migrations, or bad writes.

[Backups docs](https://appwrite.io/docs/products/databases/backups)

Backup policies

Encrypted

Hot backups with zero downtime and fast recovery.

Hourly

Runs every hour, retained for 24 hours

Daily

Runs every day, retained for 7 days

Manual backup

02:14 UTC · 1.8 GB

AES-256

Point-in-time recovery (PITR)

Retention 7 days

Restore to a specific moment beyond the latest backup.

Restore time

Sep 30, 14:32:05 UTC

Sep 26Sep 27Sep 28Sep 29Sep 30Oct 1Now

Sep 26Now

Restore completed

orders-prod · 14:32:05 UTC

## Permissions wired to Auth

Scope TablesDB and DocumentsDB access with users, teams, and roles from Appwrite Auth. Set rules at the table, collection, row, or document level so each tenant only sees their data.

[Permissions docs](https://appwrite.io/docs/products/databases/permissions)

team:acme

Team

role:admin

Role

user:owner

User

orders3 rules

PermissionsReadCreateUpdateDelete

team:acme

role:admin

user:owner

Rows

row\_8f2cuser:paige/readuser:paige/update

UsersTeamsRoles

Auth linked

## Queries, relationships, and transactions

Filter, order, and paginate from the SDKs and Console. Model related data with relationships, run multi-step writes in transactions, and use bulk operations when you need to update many rows or documents at once.

[Queries docs](https://appwrite.io/docs/products/databases/tablesdb/queries)

2 filtersQuery.equal('status', 'active')Query.equal('teamId', 'acme')Query.orderDesc('$createdAt')Query.limit(3)

Launch checklist

row\_01 · teamId: acme

active

Billing migration

row\_02 · teamId: acme

active

Onboarding emails

row\_03 · teamId: acme

active

Relationships

teams/acme

Acme Engineering

Link related tables without custom joins.

Transaction

Completed

1. createRow('orders')
2. updateRow('teams')
3. deleteRow('drafts')

Commit multi-step writes atomically.

Bulk operations

upsertRows · 1,000

## Managed PostgreSQL and MySQL

Hosted PostgreSQL and MySQL with standard clients and the in-console SQL editor. Use pgvector, PostGIS, portable schemas, and the ORMs you already run.

[PostgreSQL docs](https://appwrite.io/docs/products/databases/postgresql)

PostgreSQLv17

Extensions, roles, SQL editor

Ready

MySQLv8.4

Connections, schemas, and backups

Ready

psql · orders-prod

Connected

```
$ psql "$DATABASE_URL"
SSL connection (protocol: TLSv1.3)
app=> CREATE EXTENSION postgis;
CREATE EXTENSION
app=> SELECT count(*) FROM stores
app->   WHERE ST_DWithin(geom, $1, 5000);
 count
-------
    42
(1 row)
app=> 
```

Extensions

pgvectorPostGISpg\_trgm

Hostpostgres.appwrite.cloud

Port5432

SSLRequired

## Works with your ORM and toolstack

Use the same connection strings with Prisma, Drizzle, Sequelize, TypeORM, SQLAlchemy, psql, and the rest of your SQL toolchain. Copy ready-made snippets from the Console Connect tab and keep shipping with the stack your team already knows.

Connection stringpostgresql://app:••••@postgres.appwrite.cloud:5432/app

### Prisma

Type-safe schema and client for Node.js and TypeScript.

### Drizzle

Lightweight TypeScript ORM with SQL-like query builder.

### Sequelize

Promise-based ORM for Node.js with multi-dialect support.

### TypeORM

Active Record and Data Mapper patterns for TypeScript.

### SQLAlchemy

Python SQL toolkit and ORM for expressive queries.

### psql

Official PostgreSQL CLI for ad-hoc SQL and schema exploration.

[Databases docs](https://appwrite.io/docs/products/databases)

## Tools built for developers and agents

API-first by design. Use the Console, Realtime, SDKs, CLI, Terraform, MCP, and agent skills on the same project.

Developer and agent experience

A typical integration in TypeScript.

TypeScript

```
import { Client, TablesDB, ID } from 'appwrite';
const client = new Client()  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1')  .setProject('<PROJECT_ID>');
const tablesDB = new TablesDB(client);
const row = await tablesDB.createRow({  databaseId: '<DATABASE_ID>',  tableId: 'tasks',  rowId: ID.unique(),  data: { title: 'Ship v1', done: false },});
```

[Everything is an APIREST, GraphQL, and SDKs for every service. Automate and integrate without console-only workflows.](https://appwrite.io/docs/apis/rest)[ConsoleManage every service in your project from a unified Console. Optimized keyboard access and a Command Center keep you moving fast.⌘KCommand Center](https://appwrite.io/docs/tooling/command-center)[RealtimeSubscribe to live events and react to changes as they happen.databases.\*.tables.\*.rows.\*databases.\*.tables.\*.rows.\*.create](https://appwrite.io/docs/apis/realtime)[MCPConnect AI agents to your Appwrite project, APIs, and docs through one remote MCP server.appwrite https://mcp.appwrite.io](https://appwrite.io/docs/tooling/ai/mcp-servers)[TerraformManage Appwrite infrastructure as code with the official provider.terraform plan terraform apply](https://appwrite.io/docs/tooling/terraform/resources/databases)[Agent skillsGive AI agents SDK-accurate knowledge of Appwrite services and APIs.npx skills add appwrite/skills](https://appwrite.io/docs/tooling/ai/skills)[SDKsClient and server SDKs for the platforms your team already uses. 15 official SDKs available across client and server runtimes.](https://appwrite.io/docs/sdks)[CLIDeploy resources, manage projects, and generate typed SDKs from your terminal.appwrite login appwrite deploy](https://appwrite.io/docs/tooling/command-line/installation)

## FAQ

### 

Yes. Native PostgreSQL databases are dedicated, managed PostgreSQL instances in your project region. You connect with psql, Prisma, Drizzle, or any PostgreSQL driver over TLS. Appwrite provisions compute, backups, replicas, a connection pooler, and point-in-time recovery. PostgreSQL 18 is the default, with 17 also supported.

[PostgreSQL docs](https://appwrite.io/docs/products/databases/postgresql)[PostgreSQL quick start](https://appwrite.io/docs/products/databases/postgresql/quick-start)

### 

Appwrite Databases include five engines in two categories. Appwrite DBs are TablesDB for relational-style tables and columns, DocumentsDB for flexible JSON documents, and VectorsDB for embeddings and similarity search. Native DBs are managed PostgreSQL and MySQL for teams that need full SQL compatibility, extensions, and portable schemas.

[Databases overview](https://appwrite.io/docs/products/databases)[PostgreSQL docs](https://appwrite.io/docs/products/databases/postgresql)

### 

Choose TablesDB, DocumentsDB, or VectorsDB when you want Appwrite SDKs, Console workflows, and Auth-aware permissions out of the box. Choose PostgreSQL or MySQL when you need advanced SQL, existing ORM tooling, extensions such as pgvector, or to run schemas you already operate elsewhere.

[PostgreSQL docs](https://appwrite.io/docs/products/databases/postgresql)[Tables](https://appwrite.io/docs/products/databases/tables)

### 

Serverless databases run on a shared pool and are the fastest way to start. Billing is usage-based: there is no fixed compute fee, and you pay for storage plus reads and writes against your plan quota (then overage). Dedicated databases provision isolated compute for predictable performance, higher connection limits, and production options such as read replicas, high availability, and point-in-time recovery. Billing is a fixed monthly compute tier per database (from $10/mo), with reads and writes included in the tier. HA replicas and PITR are optional add-ons, and extra storage or bandwidth is billed as overage. You pick a specification when you create the database and can upgrade later.

[Database pricing](https://appwrite.io/pricing#database-pricing)

### 

On serverless databases, replication and high availability are abstracted and managed by the platform, so you do not configure replicas or sync mode yourself. On dedicated databases, traffic can enter through a connection pooler such as PgDog or ProxySQL. A primary instance accepts reads and writes, and read replicas scale query traffic and improve failover resilience. High availability is enabled when replica count is greater than zero. Choose asynchronous, synchronous, or quorum sync mode, and promote a replica from the Console when you need to move write traffic.

### 

Yes on Appwrite Cloud for supported plans and engines. Create automated backup policies or run manual backups from the Backups tab. Point-in-time recovery (PITR) on dedicated databases lets you restore to a specific moment beyond the latest scheduled backup, which helps after accidental deletes, failed migrations, or bad writes.

[Backups](https://appwrite.io/docs/products/databases/backups)

### 

Yes. TablesDB and DocumentsDB permissions can reference users, teams, and roles from Appwrite Auth at the table, collection, row, and document level. Scope data per customer or workspace without building custom access control.

[Permissions](https://appwrite.io/docs/products/databases/permissions)[Multi-tenancy](https://appwrite.io/docs/products/auth/multi-tenancy)

### 

Yes. Appwrite DBs support filters, ordering, pagination, relationships, transactions, bulk operations, and geo queries through the SDKs and Console. Native PostgreSQL and MySQL databases support full SQL from the in-console editor and your existing SQL clients.

[Queries](https://appwrite.io/docs/products/databases/tablesdb/queries)[Relationships](https://appwrite.io/docs/products/databases/relationships)[Transactions](https://appwrite.io/docs/products/databases/transactions)[Bulk operations](https://appwrite.io/docs/products/databases/bulk-operations)

## Start building with Databases

Create a database, choose your engine and compute model, and query your first data in minutes.

[Start building](https://appwrite.io/sign-up?redirect=%2F)[View pricing](https://appwrite.io/pricing)

## Explore Appwrite

Modular backend services that share the same project, permissions model, and console.

[AuthEmail, OAuth, SMS, MFA, teams, and sessions.](https://appwrite.io/products/auth)

[DatabasesManaged PostgreSQL, TablesDB, DocumentsDB, VectorsDB, MySQL.](https://appwrite.io/products/databases)

[PostgreSQLManaged PostgreSQL with pooling, replicas, and PITR.](https://appwrite.io/products/postgres)

[StorageUpload, transform, and deliver files on CDN.](https://appwrite.io/products/storage)

[FunctionsAPIs, cron jobs, and event handlers at scale.](https://appwrite.io/products/functions)

[MessagingEmail, SMS, and push with topics and targets.](https://appwrite.io/products/messaging)

[RealtimeLive events, channels, and presence.](https://appwrite.io/products/realtime)

[SitesStatic, SSR, and CSR deploys from Git.](https://appwrite.io/products/sites)

[DomainsSearch, buy, transfer, and manage domains.](https://appwrite.io/domains)

[FirewallProject rules to deny, rate limit, and redirect traffic.](https://appwrite.io/products/firewall)

### 

### 

### 

### 

### 

### 

[](https://github.com/appwrite)[](https://x.com/appwrite)[](https://www.linkedin.com/company/appwrite/)[](https://www.instagram.com/appwrite.io/)[](https://appwrite.io/discord)[](https://apwr.dev/dailydev)

[SOC 2 Type II Certified](https://appwrite.io/docs/advanced/security)

© 2026 Appwrite
