---
title: "PostgreSQL"
description: "PostgreSQL as a MainSDK driver for search, config. Pick it in main.yaml; your calls stay the same."
section: "integrations"
canonical: "https://mainsdk.dev/docs/integrations/postgresql"
updated: "2026-10-28"
---

# PostgreSQL

> PostgreSQL as a MainSDK driver for search, config. Pick it in main.yaml; your calls stay the same.

Canonical: https://mainsdk.dev/docs/integrations/postgresql · Updated: 2026-10-28

PostgreSQL as a MainSDK driver for search, config. Pick it in main.yaml; your calls stay the same.

## Interfaces it serves

### Search (`search`)

- Status: Building for 0.4 · ships as a beta API
- Driver: `db` (Built in on db (Postgres full-text search, SQLite FTS5 locally), default)
- Docs: https://mainsdk.dev/docs/interfaces/search.md

```yaml
search:
  driver: db
```

Swap to another provider: `typesense`, `meilisearch`, `local`, `algolia`, `pgvector`.

### Runtime settings (`config`)

- Status: Building for 0.2 · ships as a stable API
- Driver: `postgres` (Postgres). planned; LISTEN and NOTIFY for change hints
- Docs: https://mainsdk.dev/docs/interfaces/config.md

```yaml
config:
  driver: postgres
```

Swap to another provider: `files`, `local`, `redis`, `vercel-global-config`, `aws-appconfig`, `cloudflare-kv`.
