Building a PostgreSQL LLM Extension with Rust Background Workers

A walkthrough of pg_llm_bgw, a PostgreSQL 18 extension written in Rust with pgrx that exposes a SQL-callable llm_ask() function, proxying prompts to OpenAI, Azure OpenAI, or Anthropic through a static background worker and shared memory.