A production AI agent saves checkpoints, maintains conversation history, retrieves context, and updates business records. Its database must keep those operations responsive as concurrent runs, vector indexes, and analytical queries grow.
The best managed Postgres service for AI agents depends on the workload's latency, retrieval, recovery, and cost requirements. Neon fits intermittent demand. Supabase combines Postgres with application-backend services, while Lakebase connects operational state with Databricks data. ClickHouse Managed Postgres provides high-performance OLTP and connects to ClickHouse for analytics. Azure HorizonDB, Tiger Cloud, and CockroachDB offer different approaches to retrieval, time-series workloads, and distributed transactions.
Quick comparison: managed Postgres for production AI agents
Shortlist services by the agent's main operating requirement, then validate their deployment conditions.
| Service | Strongest fit | Why evaluate it | Main tradeoff |
|---|---|---|---|
| Neon | Agents with variable demand and meaningful idle periods | Compute autoscaling, eligible scale-to-zero, and Postgres-based retrieval | Resume latency affects the first request. Active replication can prevent suspension |
| Supabase | Tenant-aware agents in an application that also needs Auth, Storage, and Realtime | Application services and PostgreSQL row-level security in one backend | Paid compute stays active during idle. Pooler choice affects session features |
| Azure HorizonDB | Azure-based agents that need transactional state and vector/keyword retrieval | Disaggregated PostgreSQL with DiskANN and hybrid search | Individual search features have preview boundaries. Compute HA requires multiple nodes |
| Databricks Lakebase | Agents whose operational decisions depend on Databricks-governed data | Postgres serving tables, lakehouse integration, and Lakebase Search | HA compute can't scale to zero. Inbound and outbound data paths have different semantics |
| Tiger Cloud | Agents working with event histories, time windows, and semantic retrieval | TimescaleDB hypertables, continuous aggregates, and vector extensions | HA, replicas, pooling, and service configuration affect capacity and cost |
| CockroachDB | Distributed agent applications that need transactional state across regions | Distributed transactions and regional data placement | PostgreSQL compatibility requires testing. It doesn't run arbitrary Postgres extensions |
| ClickHouse Managed Postgres | Agents with sustained transactional traffic or growing analytical workloads | Native Postgres on local NVMe, with managed replication to a separately provisioned ClickHouse service for analytics | No automatic scale-to-zero. Provisioned compute stays billed during idle periods. Scale-to-zero for branch environments and a dedicated agent tier is planned through the Xata integration |
Managed Postgres comparison criteria
Deployed agents use databases for state, retrieval, and business transactions. Branches and forks help teams validate changes and recover production data. Database provisioning by coding assistants is a separate development workflow.
The seven services represent different operating models: elastic compute, integrated application backends, Azure and Databricks integration, time-series storage, distributed SQL, and Postgres with a separate analytics path. CockroachDB is a PostgreSQL-compatible distributed SQL alternative to native PostgreSQL. RDS/Aurora, Cloud SQL, and Prisma Postgres are additional options outside this representative shortlist.
The production choice rests on five decisions:
- Can the service run the agent framework's checkpoint, transaction, extension, and migration requirements?
- What happens under concurrent runs, connection bursts, and the first request after idle?
- Which vector, keyword, and hybrid search paths are available?
- How are writes protected, failed connections recovered, and tenant access enforced?
- Which resources stay active, and where do historical scans run?
7 managed Postgres services for production AI agents
Neon: autoscaling and scale-to-zero for variable traffic
Best fit: production agents with variable traffic and periods of inactivity.
Neon separates compute from storage, supports compute autoscaling, and can suspend eligible compute when idle. Its backend also includes Auth, Functions, Object Storage, and an AI Gateway. Alongside pgvector, Lakebase Search on Neon provides vector, BM25 keyword, and hybrid retrieval.
Neon's idle savings depend on the agent's request cadence. Suspension resets sessions and caches and can increase first-request latency. An active logical-replication subscriber can keep the publisher compute running. Neon bills for active compute, storage, retained history, and applicable transfer.
Supabase: Postgres with Auth, Storage, and Realtime
Best fit: tenant-aware agents within applications that also need authentication, storage, and realtime features.
Supabase combines dedicated PostgreSQL with Auth, Storage, Realtime, and Edge Functions. It supports hybrid retrieval with pgvector and PostgreSQL full-text search, while row-level security can restrict retrieval to permitted documents.
Supabase provides shared transaction pooling, session pooling, and dedicated PgBouncer. These connection paths differ in prepared-statement support and session behavior, so the choice depends on the agent runtime. Supabase paid projects stay active during idle. Supabase charges for the platform plan, per-project compute, disk, and other consumed services.
Supabase Pipelines provides managed CDC to external analytics destinations and is currently in public alpha.
Azure HorizonDB: Postgres with vector and hybrid search
Best fit: Azure-based agents that need transactional records and integrated search.
Azure HorizonDB separates compute from storage and uses a database-as-log architecture. It supports vector retrieval through pgvector and DiskANN through pg_diskann, with hybrid SQL search combining keyword and vector results.
Azure HorizonDB's general availability doesn't cover every search feature. Check the release status of the retrieval features the agent requires. Azure HorizonDB doesn't currently include built-in PgBouncer, so plan application-side or external pooling.
Provisioned compute nodes, data/log storage, backups, and enabled AI services drive cost. Zonal compute resilience requires additional nodes.
Databricks Lakebase: Postgres for agents using lakehouse data
Best fit: agents that need low-latency operational state close to Databricks-governed data.
Lakebase combines managed PostgreSQL with Databricks data paths. Synced tables create read-only Postgres serving copies of lakehouse data. Lakebase Search adds vector, keyword, and hybrid retrieval. Ordinary writable Postgres tables can hold the agent's own operational state.
Lakebase's data paths don't provide automatic bidirectional synchronization. Lakebase HA compute stays active, while eligible non-HA compute can suspend. Enabling Lakebase Search restarts project computes and can't be reversed.
Lakebase costs include active compute, database and branch storage, snapshots, and any lakehouse pipelines. Neon and Lakebase share architectural lineage but require separate evaluation of versions, extensions, and pricing.
Tiger Cloud: time-series data and vector retrieval
Best fit: agents that query event histories, time windows, and semantic context together.
Tiger Cloud combines PostgreSQL with TimescaleDB hypertables and continuous aggregates, which maintain time-window summaries. It supports pgvector and pgvectorscale, including StreamingDiskANN. Event-driven agents can query time windows, summaries, and vector similarity within PostgreSQL.
Tiger Cloud offers HA replicas, read replicas, and the optional pooling add-on as separate deployment choices. AWS and Azure feature availability can differ. Tiger Cloud bills for compute, consumed storage, and enabled additions like pooling or I/O Boost. Additional replicas add compute and storage charges.
CockroachDB: distributed SQL with PostgreSQL compatibility
Best fit: distributed agent applications whose transactional records need regional placement and resilience.
CockroachDB provides distributed SQL with PostgreSQL wire-protocol compatibility. Its native VECTOR functionality and C-SPANN indexing support vector retrieval without installing pgvector.
CockroachDB isn't native PostgreSQL and doesn't support arbitrary extensions. CockroachDB v26.3 supports transaction-scoped advisory locks, while session-scoped locks remain unsupported. PostgreSQL dump/restore compatibility is limited to schema-only, plain-format dumps.
Test the checkpoint library's generated SQL, schema setup, migration behavior, and transaction retries. Current Cockroach Continuum pricing follows running vCPU-hours, storage, backups, and selected features. Existing customers may retain legacy plans.
ClickHouse Managed Postgres: local NVMe and separate analytics
Best fit: agents with sustained transactional traffic or analytical queries that need independent compute.
ClickHouse Managed Postgres runs native PostgreSQL on local NVMe, with PgBouncer, vector extensions, backups, and configurable HA. ClickHouse Managed Postgres stores agent checkpoints, business records, and tool results. A separately provisioned ClickHouse service runs analytics over replicated data.
ClickPipes asynchronously replicates selected data. The pg_clickhouse extension exposes ClickHouse tables through PostgreSQL and pushes down supported work. Reads requiring the latest committed state stay on Postgres.
ClickHouse Managed Postgres is generally available on AWS and in private preview on GCP. Its pricing depends on the VM configuration, HA, and organization tier, with analytics compute billed separately.
Current branches restore backups and replay WAL. The Xata integration roadmap includes copy-on-write branching and cloning, automatic idling, and scale-to-zero for branch environments and a dedicated agent tier.
How to persist LangGraph agent checkpoints in Postgres
Production agents need to retain progress across worker restarts. LangGraph saves checkpoints in Postgres so a later process can load a thread’s saved state. The counter below makes that persistence visible without a model call.
import os
from langgraph.checkpoint.postgres import PostgresSaver
with PostgresSaver.from_conn_string(os.environ["DATABASE_URL"]) as saver:
saver.setup()
The graph increments a counter and saves its state under a fixed thread ID.
import os
from typing import TypedDict
from langgraph.graph import StateGraph, START, END
from langgraph.checkpoint.postgres import PostgresSaver
class State(TypedDict):
runs: int
def step(state: State):
return {"runs": state.get("runs", 0) + 1}
builder = StateGraph(State)
builder.add_node("step", step)
builder.add_edge(START, "step")
builder.add_edge("step", END)
config = {"configurable": {"thread_id": "persistence-demo"}}
with PostgresSaver.from_conn_string(os.environ["DATABASE_URL"]) as saver:
graph = builder.compile(checkpointer=saver)
print(graph.invoke({}, config))
Two sequential processes using the same database and thread ID return {'runs': 1} and then {'runs': 2}. The second process loads the saved counter before executing the next step.
This provides a concrete check for a shortlisted provider: the framework’s checkpoint tables and queries must work through the connection path the agent will use in production.
Postgres performance: connection pooling, cold starts, and transactions
An agent can read conversation history, retrieve documents, save a checkpoint, and update a business record in one run. Concurrent runs multiply those short transactions. Connection acquisition, commit latency, and the slowest queries all contribute to the time a user waits.
Scale-to-zero and cold-start latency
Neon suspends eligible compute after five minutes of inactivity by default and can reactivate it within a few hundred milliseconds. Scale-to-zero applies to computes up to 16 CU. Larger computes stay active. Paid plans can disable suspension.
Eligible non-HA Lakebase computes of 32 CU or smaller default to a 24-hour inactivity timeout, configurable from 60 seconds to seven days. HA compute can't scale to zero. Lakebase can reactivate eligible suspended compute within a few hundred milliseconds.
Resume time is only part of first-request latency. Suspension resets sessions, prepared statements, temporary objects, and in-memory caches. A worker must reconnect and re-establish its session, and its first queries can hit a cold cache. Measure the first useful request after a realistic idle period alongside steady-state p95 and p99 latency.
Supabase paid projects don't pause for inactivity. Free projects with insufficient activity over seven days can pause. Azure HorizonDB and ClickHouse Managed Postgres bill for provisioned compute while it's running, including idle periods. ClickHouse plans to add automatic idling and scale-to-zero for branch environments and a dedicated agent tier. Tiger Cloud supports stop/start operations.
CockroachDB suspension behavior depends on the edition. Check the selected Continuum deployment separately from legacy Basic plans.
Connection pooling and prepared-statement compatibility
| Service | Connection path | Production condition to check |
|---|---|---|
| Neon | Transaction pooling, up to 10,000 client connections per compute | Client connections share a smaller set of database backends. The limit isn't concurrent transaction capacity |
| Supabase | Shared Supavisor in transaction or session mode. Dedicated PgBouncer on Pro and above | Shared transaction mode doesn't support prepared statements. Dedicated PgBouncer supports them |
| Azure HorizonDB | External pooler or application-side pooling | Azure HorizonDB doesn't currently include built-in PgBouncer |
| Databricks Lakebase | Built-in PgBouncer, transaction mode | Up to 10,000 client connections. Protocol prepared statements work, while SQL PREPARE and session features require direct connections |
| Tiger Cloud | Optional pooling add-on | Enable and budget for it separately |
| CockroachDB | Application-side pooling | Test retry behavior and connection limits under the chosen topology |
| ClickHouse Managed Postgres | PgBouncer, transaction mode | Protocol-level prepared statements require compatible driver settings. SQL PREPARE, session-dependent migrations, and ClickPipes CDC need a direct connection |
Run checkpoint setup, normal reads and writes, transaction retries, and reconnects through the exact endpoint the production worker will use.
ClickHouse vs. Neon: Postgres transaction benchmarks
ClickHouse Managed Postgres averaged approximately 26,105 transactions per second, while Neon averaged 7,693 transactions per second. Both configurations had 16 vCPUs and 64 GB RAM. The approximately 500 GB TPC-B-like pgbench workload used 256 clients, 16 threads, prepared queries, provider-default settings, HA disabled, and us-east-2, with three 600-second runs.
Local NVMe avoids a remote data-storage hop. Synchronous standbys add an acknowledgment path.
Compare services under the durability, pooling, vector-retrieval, and concurrency settings the agent will actually use. Record commit latency and p95/p99 request latency alongside throughput.
Managed Postgres pricing: production cost drivers
An always-active agent backend and an intermittently used agent have different cost profiles. Price the primary database together with its availability configuration, retained state, retrieval indexes, and any separate analytical service.
| Service | Primary cost drivers | Conditions to check |
|---|---|---|
| Neon | Active compute CU-hours, database and changed-branch storage, restore history, applicable data transfer | An active logical-replication subscriber prevents publisher suspension. Retained data and history still cost money while compute is idle |
| Supabase | Per-project compute, disk, and platform services | Pro starts at \$25/month. Each project and preview branch has its own compute costs |
| Azure HorizonDB | Provisioned compute nodes, data/log storage, and excess backup storage | Region, agreement, additional HA nodes, and enabled Microsoft Foundry models affect the total |
| Databricks Lakebase | Active compute, database/branch storage, snapshots, and lakehouse pipelines | HA compute stays active. Expiring and permanent branches have different storage billing |
| Tiger Cloud | Hourly compute, consumed storage, and optional pooler or I/O Boost | HA and read replicas add compute/storage. Active standard-service forks are separately provisioned |
| CockroachDB | Running vCPU-hours, storage, backups, and selected Continuum features | Edition, region, durability, transfer, and CDC/replication additions affect cost. Legacy plans differ |
| ClickHouse Managed Postgres | VM configuration, HA, and organization tier | Read replicas and ClickHouse analytics cost extra. ClickPipes replication compute is free. Transfer charges can apply outside the same region. WalShadow is free during private preview. Backup storage up to provisioned disk capacity is included |
Estimate costs for the intended region and active-compute schedule. Include CPU/RAM, vector-index footprint, checkpoint retention, replicas, backups, egress, and any separately billed embedding or analytics services. Entry plans don't provide equivalent capacity or recovery behavior across providers.
Vector search, pgvector, and hybrid retrieval for AI agents
Postgres can store business records, checkpoints, and embeddings together. Vector retrieval depends on corpus size, tenant filters, update rate, recall, and latency requirements.
| Service | Retrieval options | Production consideration |
|---|---|---|
| Neon | pgvector and Lakebase Search for vector, BM25, and hybrid retrieval | Verify required PostgreSQL version and index memory alongside the transactional working set |
| Supabase | pgvector plus PostgreSQL full-text search, combined with reciprocal rank fusion | Apply tenant permissions to the retrieval query as well as ordinary record access |
| Azure HorizonDB | pgvector, pg_diskann, and BM25/vector hybrid SQL | Confirm the status and requirements of the filtering and indexing features the agent uses |
| Databricks Lakebase | lakebase_vector/lakebase_ann and lakebase_text/lakebase_bm25 | PostgreSQL 16+. Enabling Search is irreversible and restarts project computes. The vector extension installs pgvector as a dependency |
| Tiger Cloud | pgvector and pgvectorscale, including StreamingDiskANN | Measure recall, latency, index maintenance, and resource use with the agent's filters |
| CockroachDB | Native VECTOR and C-SPANN | This isn't the pgvector extension. Test the framework's query and index requirements |
| ClickHouse Managed Postgres | pgvector, vchord, vchord_bm25, and pg_tokenizer, plus pg_clickhouse for retrieval on ClickHouse | Local extensions run within Postgres. pg_clickhouse executes supported retrieval queries against a separately provisioned ClickHouse service |
ClickHouse Managed Postgres also supports retrieval on separate ClickHouse compute. Applications query vectors and text stored in ClickHouse through PostgreSQL using pg_clickhouse. Supported pgvector nearest-neighbor queries push down to ClickHouse. The clickhouse_query function executes native ClickHouse text-search SQL. This gives retrieval independent compute while Postgres retains checkpoints and transactional records.
Compare retrieval configurations using the same embeddings, dimensions, filters, recall target, update rate, concurrency, and memory budget. Measure build time, maintenance cost, and p95/p99 latency together. A configuration that retrieves quickly without tenant filters may behave differently when every query must restrict results to one account.
Postgres permissions, row-level security, and MCP access
A deployed agent needs permission to perform specific business operations. Give its backend a narrowly granted database role, enforce tenant ownership in queries and policies, and set query timeouts. For PostgreSQL row-level security, use a non-superuser role without BYPASSRLS. Both superusers and BYPASSRLS roles bypass row policies. Table owners normally bypass policies too unless FORCE ROW LEVEL SECURITY applies.
Keep schema migrations and checkpoint-table setup under a separate deployment role. A runtime worker that reads or updates state doesn't need permission to provision databases, change roles, or apply arbitrary schema changes.
MCP is an interface, not a permission boundary. Neon's hosted MCP server is intended for development and testing, not production database access. Supabase's MCP server is internal developer tooling, with project scope, read-only settings, and tool restrictions for production diagnostics. Neither substitutes for the application's runtime database connection.
ClickHouse Cloud Remote MCP supports Managed Postgres queries and monitoring. Its tools are read-only. Postgres SELECT queries require OAuth and aren't available with Cloud API-key authentication. Remote MCP supports investigation and read access. Agents write checkpoints through a restricted PostgreSQL connection.
ClickHouse Managed Postgres supports IP allowlists and private networking on Scale and Enterprise. Apply those controls alongside SQL grants and tenant policies.
Postgres high availability, backups, and recovery
Set a recovery time objective for acceptable downtime and a recovery point objective for acceptable data loss. Multi-AZ storage, ready failover compute, and asynchronous read replicas provide different protections.
| Service | Availability and recovery model | Production condition to check |
|---|---|---|
| Neon | Multi-AZ WAL/storage, with compute restart or rescheduling | Workers must reconnect. Native read replicas are same-region. Cross-region setups use logical replication |
| Supabase | Backups/PITR and asynchronous read replicas | Read replicas isolate reads. They aren't synchronous automatic-failover standbys |
| Azure HorizonDB | Zone-resilient storage. Compute HA with multiple nodes | Zonal compute resilience requires at least two nodes in the relevant pool |
| Databricks Lakebase | Shared HA storage and optional HA compute with preallocated secondary compute | HA compute can't scale to zero. Workers reconnect after failover. Cross-region DR is private preview and not intended for production use during that preview |
| Tiger Cloud | HA replicas and separate read replicas | Default rapid recovery differs from provisioned HA. Replicas add cost |
| CockroachDB | Replicated distributed ranges and region/topology choices | Cockroach Continuum Standard provides a 99.99% availability SLA. Multi-region Mission Critical provides a 99.999% availability SLA |
| ClickHouse Managed Postgres | Configurable standbys, daily backups, and WAL archiving | One async standby can lose recent writes. Two synchronous standbys wait for one acknowledgement. One synchronous standby plus a WAL listener is in preview |
ClickHouse Managed Postgres HA standbys handle failover and don't serve application reads. Read replicas are separately configured. Its backup system archives WAL every 60 seconds or 16 MB, whichever comes first, and restores into a new deployment.
Database branching for production testing and recovery
Use a production-like copy to rehearse checkpoint migrations, retention changes, and retrieval-index updates. Neon and Lakebase provide copy-on-write branches. Supabase branches are data-less by default. The dashboard's beta Include data option can copy production data when PITR is enabled.
ClickHouse Managed Postgres branches restore backups and replay WAL into independent deployments, typically taking minutes to tens of minutes. Copy-on-write branching and instant cloning are planned through the Xata integration. Tiger Cloud standard-service forks also use backup restore and WAL replay. Free-service forks use copy-on-write storage. Use branch creation time to plan release and recovery workflows.
Production-derived copies retain source records. Use separate credentials and apply the same access controls, or sanitize the data before broader testing.
Before cutover, exercise the actual checkpoint library, permissions, migrations, pooling mode, prepared statements, and failover behavior. Check that the agent can recover saved work without repeating completed external actions.
Postgres analytics: read replicas, CDC, and separate engines
Postgres serves operational records and checkpoints. Read replicas and separate analytical engines provide additional compute for historical analysis of tool outcomes, token use, evaluations, and product activity.
| Service | Analytical read path | Freshness and operating boundary |
|---|---|---|
| Neon | Independent read-replica compute on shared storage, plus logical replication to external systems | Replicas are asynchronous. External replication adds pipeline operation and can keep publisher compute active |
| Supabase | Read replicas. Managed Pipelines CDC to external destinations | Pipelines is public alpha with at-least-once delivery. Managed execution currently runs in Frankfurt |
| Azure HorizonDB | Reader compute and mirroring to Microsoft Fabric | Fabric HorizonDB is a separate preview service. Verify the exact destination and freshness requirements |
| Databricks Lakebase | Lakehouse-to-Postgres synced tables. Outbound Change Data Feed to Delta | Synced tables are read-only serving copies. CDF is public preview and creates change-history tables. The paths don't provide automatic bidirectional synchronization |
| Tiger Cloud | Continuous aggregates for time-window summaries | Summaries run within PostgreSQL/TimescaleDB and consume service resources |
| CockroachDB | Follower reads for eligible historical reads. External pipelines for a separate analytics engine | Follower reads use a historical timestamp. They don't provide a separate analytical execution engine |
| ClickHouse Managed Postgres |
ClickPipes to a separately provisioned ClickHouse service. pg_clickhouse for supported query pushdown |
Postgres owns transactional writes. The analytical copy is eventually consistent. Managed WalShadow is private preview |
For ClickHouse Managed Postgres, Postgres and ClickHouse share a Cloud console and consolidated bill. Each service has independent compute and storage. CDC consumes source resources. Queries requiring the latest committed state belong on Postgres rather than the asynchronous analytical copy.
For any external path, identify the authoritative write source, acceptable lag, DDL-change handling, and rebuild behavior. Measure checkpoint latency and analytical query latency under combined load.
How to validate your managed Postgres shortlist
Shortlist by the main requirement in the opening table, then validate the whole production path: persist and recover a checkpoint, retrieve tenant-authorized context, execute the agent's business transaction, reconnect after failover, and run expected reporting load alongside live requests.
Compare the latency, recovery, and cost of that configuration. Branch creation time, client-connection limits, and synthetic transaction throughput capture individual aspects of database behavior. A production deployment must satisfy the agent's combined state, retrieval, and availability requirements.
Managed Postgres for production AI agents: FAQs
Which database is best for AI applications?
PostgreSQL is a practical choice for production AI agents that need durable checkpoints, business transactions, and vector retrieval in one database. Choose a managed Postgres service by matching framework compatibility, query latency, recovery capabilities, and total operating cost to the workload. Separate search and analytical engines provide independent capacity for retrieval and reporting.
Can AI agents connect to a database?
AI agents can connect to databases through standard database drivers or application-owned tools that execute defined queries. For production PostgreSQL access, use a restricted database role, tenant permissions, and query timeouts. Administrative MCP access is a separate choice: read-only MCP tools can retrieve information but can't save checkpoints or perform business writes.
Can PostgreSQL store AI agent memory?
PostgreSQL can persist AI agent memory, including conversation history, checkpoints, user preferences, and durable facts. In LangGraph, checkpointers save thread-scoped workflow state, while stores provide memory across threads. Configure the appropriate persistence integration, authorize each user's or tenant's access to saved state, and apply retention policies.
Can PostgreSQL be used as a vector database?
PostgreSQL can work as a vector database when an extension like pgvector is available. pgvector adds vector data types, distance operators, and similarity-search indexes, letting you run SQL queries over embeddings and relational metadata. Check the managed provider's extension support, then measure recall and latency with production data volume, tenant filters, and query concurrency.
Do AI agents need a separate vector database?
AI agents don't always need a separate vector database. PostgreSQL with pgvector can store embeddings alongside transactional records and apply metadata filters in SQL. ClickHouse Managed Postgres also provides a ClickHouse-backed retrieval path through pg_clickhouse, using the PostgreSQL interface. Evaluate a dedicated vector service when workload tests show that Postgres can't meet the required recall, latency, update rate, or concurrency, or when retrieval needs independent compute and storage.
Is pgvector free to use?
pgvector is free to use under its open-source license. A managed Postgres provider can still charge for compute, vector-index storage, backups, and data transfer, although free-tier allowances may cover small deployments. Check extension availability and plan limits when estimating the cost of running pgvector.
Should a production agent database scale to zero?
A production agent database should scale to zero when idle savings justify reconnection and cold-cache latency. Keep compute active for agents with strict first-request latency targets. Provider rules also apply: Lakebase HA compute can't scale to zero, and active Neon replication can prevent compute from suspending. Scale-to-zero for branch environments and a dedicated agent tier is planned for ClickHouse Managed Postgres. Check background traffic before estimating idle savings.
Top comments (0)