All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
v0.1.1 - 2025-12-15
- Fix LLVM bitcode build error on PostgreSQL 18+ (#30)
- Fix
make installnot installing shared library (#31, #37) - Fix
make cleannot removing extension files from root directory (#35)
- Fix config parser including inline comments with field values (#28)
- Pin GitHub Actions to commit SHAs for supply chain security (#32, #33)
- Add Makefile/PGXS build tests for PostgreSQL 16-18
Thanks to the following people for their contributions to this release:
- @reneleonhardt - GitHub Actions security hardening
- @fvlnl - Reported PostgreSQL 18 build issues (#29)
v0.1.0 - 2025-12-09
generate_query(text, text, text)- Generate SQL queries from natural language descriptions- Automatic database schema discovery
- Support for provider selection (
openai,anthropic,gemini,auto) - Optional inline API key parameter
explain_query(text, text, text)- AI-powered query plan analysis- Runs
EXPLAIN ANALYZEand provides human-readable explanations - Performance insights and optimization suggestions
- Runs
get_database_tables()- Returns JSON array of all user tables with metadataget_table_details(text, text)- Returns detailed table information including columns, constraints, and indexes
- OpenAI - All current supported models
- Anthropic - All current supported models
- Google Gemini - All current supported models
- OpenAI-compatible APIs - Support for OpenRouter and other compatible endpoints
- Automatic provider selection with fallback logic
- Configurable retry policies with exponential backoff
- File-based configuration via
~/.pg_ai.config - Support for multiple AI providers in single config
- Configurable options:
- Log level and logging toggle
- Request timeout and retry settings
- Query limit enforcement
- Response formatting (explanations, warnings, visualizations)
- Custom API endpoints for OpenAI-compatible services
- Comprehensive mdBook documentation
- Installation and configuration guides
- Provider comparison and model selection guide
- Usage examples and troubleshooting
- Built with C++20
- Uses ai-sdk-cpp for AI provider integration
- PostgreSQL extension API compliance
v0.1.0-beta - 2025-12-08
generate_query(text, text, text)- Generate SQL queries from natural language descriptions- Automatic database schema discovery
- Support for provider selection (
openai,anthropic,auto) - Optional inline API key parameter
explain_query(text, text, text)- AI-powered query plan analysis- Runs
EXPLAIN ANALYZEand provides human-readable explanations - Performance insights and optimization suggestions
- Runs
get_database_tables()- Returns JSON array of all user tables with metadataget_table_details(text, text)- Returns detailed table information including columns, constraints, and indexes
- OpenAI - All current supported models
- Anthropic - All current supported models
- OpenAI-compatible APIs - Support for OpenRouter and other compatible endpoints
- Automatic provider selection with fallback logic
- Configurable retry policies with exponential backoff
- File-based configuration via
~/.pg_ai.config - Support for multiple AI providers in single config
- Configurable options:
- Log level and logging toggle
- Request timeout and retry settings
- Query limit enforcement
- Response formatting (explanations, warnings, visualizations)
- Custom API endpoints for OpenAI-compatible services
- Comprehensive mdBook documentation
- Installation and configuration guides
- Provider comparison and model selection guide
- Usage examples and troubleshooting
- Built with C++20
- Uses ai-sdk-cpp for AI provider integration
- SSL/TLS support via OpenSSL
- PostgreSQL extension API compliance