← All 25 Vector, Embedding & MCP Error Fixes

ERROR FIX #04 // SUPABASE & RDS // SQLSTATE 57014

Fix ERROR: canceling statement due to statement_timeout (SQLSTATE 57014) Building pgvector HNSW

Supabase and managed PostgreSQL enforce default role timeouts (8s on PostgREST, 2min in SQL Editor) and tiny 64 MB maintenance_work_mem budgets, forcing disk-thrashing HNSW graph builds that abort with SQLSTATE 57014. Connect via direct port 5432 psql, raise statement_timeout = 0 and maintenance_work_mem, or ingest directly into Voxell Forge GPU indexes ($0 Turbo; $39/mo Builder).

ERROR: 57014: canceling statement due to statement_timeout (CREATE INDEX ... USING hnsw)

Why Supabase SQL Editor & 64 MB maintenance_work_mem Stall HNSW Builds

Two compounding caps kill CREATE INDEX ... USING hnsw: first, web dashboards and connection poolers (Supavisor port 6543) enforce short statement timeouts; second, once the growing HNSW graph exceeds maintenance_work_mem, pgvector spills random neighbor lookups to disk, slowing index construction by 15x to 40x.

Immediate CLI Fix: Direct Port 5432 Session With Elevated Build Memory

-- Run via direct psql connection (port 5432, NOT transaction pooler 6543)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET maintenance_work_mem = '4GB'; -- Set to 50-70% of free instance RAM
SET max_parallel_maintenance_workers = 4;

CREATE INDEX CONCURRENTLY idx_docs_hnsw_fp16
  ON documents
  USING hnsw ((embedding::halfvec(1536)) halfvec_cosine_ops)
  WITH (m = 16, ef_construction = 64);

Zero-DDL GPU Indexing on Voxell Forge

Stop babysitting multi-hour CREATE INDEX CONCURRENTLY maintenance windows and upgrading OLTP RAM tiers just to build vector graphs. forge-cli up ./docs streams documents directly into GPU-indexed Spaces ($0 Free tier; $39/mo Builder annual) with zero database lock contention.

Frequently Asked Questions

What happens after CREATE INDEX CONCURRENTLY fails with SQLSTATE 57014?

PostgreSQL leaves behind an INVALID index entry that still consumes disk and slows writes. Run DROP INDEX CONCURRENTLY on the invalid index name before retrying.

Why can I not run CREATE INDEX CONCURRENTLY inside the Supabase SQL Editor?

Many dashboard SQL runners wrap statements inside an implicit transaction block, which PostgreSQL forbids for CONCURRENTLY builds and overrides session timeouts.

AUTONOMOUS AGENT & DEVELOPER VERIFICATION // ZERO SIGNUP

Run a live keyless bake-off right now

Do not take a vendor table on faith. Run your own passages and queries against Voxell Forge (Pro 2560d + C_corpus zero-LLM ingest dialect conditioning + Max two-stage neural reranking) over REST or Zero-Install Remote Streamable HTTP MCP with zero API key.

1. REST Retrieval Bake-Off & Corpus X-Ray
curl -sS -X POST https://api.voxell.ai/api/v1/agent/bakeoff \
  -H "Content-Type: application/json" \
  -d '{
    "documents": [
      {"name": "policy-a.md", "text": "Standard subscriptions include a 30-day refund window."},
      {"name": "msa-b.md", "text": "Enterprise annual contracts carry a 14-day cancellation notice rule."}
    ],
    "queries": ["What is the standard subscription refund window?"]
  }'

curl -sS -X POST https://api.voxell.ai/api/v1/agent/xray \
  -H "Content-Type: application/json" \
  -d '{
    "documents": [
      {"name": "sla-2025.md", "text": "P1 response SLA is 4 hours."},
      {"name": "sla-2026.md", "text": "P1 response SLA is 15 minutes."}
    ]
  }'
2. Zero-Install Remote HTTP MCP (POST /mcp/try)
claude mcp add --transport http voxell-forge https://api.voxell.ai/mcp/try
# mcp.json: {"mcpServers":{"voxell-forge":{"url":"https://api.voxell.ai/mcp/try"}}}

curl -sS -X POST https://api.voxell.ai/mcp/try \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "forge_bakeoff_compare",
      "arguments": {
        "documents": [
          {"name": "vpc.md", "text": "Forge Local runs on 1x 24 GB GPU inside your Sovereign VPC with zero egress."}
        ],
        "queries": ["How many GPUs does Forge Local require?"]
      }
    }
  }'
# Tools exposed: forge_bakeoff_compare, forge_xray_audit