Repository navigation
feat: add PostgreSQL 18 support, interactive engine switcher, full 120-task leaderboard, and indexing analysis - #1
Merged
sethusrinivasan merged 1 commit intoNov 13, 2026
Conversation
…d switcher, full 120-task leaderboard across all models, and indexing analysis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR delivers multi-database engine support, adds interactive database engine switching to the live benchmark dashboard, expands the Multi-Model Frontier Leaderboard to reflect full 120-task evaluation results across all models in Antigravity's context, and includes an in-depth empirical physical plan and indexing analysis.
Key Changes
1. PostgreSQL 18+ Docker Compose Instance & Analytical Extension Suite
docker-compose.ymlanddocker/Dockerfilebuilding PostgreSQL 18.7 with native multi-extension support.setup_postgres.sh(chmod +x setup_postgres.sh) automating container build, healthcheck polling, and extension verification.docker/init.sql:vector(pgvector 0.8.7): HNSW and IVFFlat vector indexing, cosine similarity (<=>), Euclidean distance (<->), and MIPS inner product (<#>).pg_trgm: Trigram indexing and fuzzy text similarity.fuzzystrmatch: Levenshtein distance, Soundex, and Metaphone phonetics.btree_gist: GiST indexing for temporal range overlaps and exclusion constraints.tablefunc: Dynamic crosstab pivots and connectby tree traversals.ltree,hstore,intarray,uuid-ossp.round(double precision, integer),array_cosine_similarity(),array_distance(),array_inner_product(),date_diff(),list(),median(), andrange().2. Dual-Engine Execution Sandbox (
SQLEvalEngine)harness/engine.pyto support bothduckdb(default in-memory columnar OLAP) andpostgres(PostgreSQL 18+ viapsycopg2).eval_sandbox) per task execution in PostgreSQL, alongside statement timeout enforcement (SET statement_timeout = '15s') andEXPLAIN (ANALYZE, FORMAT JSON, VERBOSE)plan extraction.run_eval.pyandrun_all_models.pywith--engine={duckdb,postgres}CLI flags.tests/test_harness.pyvalidating PostgreSQL isolation, query execution, and plan operator profiling (14/14 tests pass).3. Dashboard Updates & Multi-Engine Interactive Switcher
"Root Cause Analysis (RCA): Yesterday's Run Abort & Ubuntu Process Termination"fromreports/index.htmlandgenerate_reports.py.⚡ DuckDB 2.0vs🐘 PostgreSQL 18.7) with client-side state management inreports/script.jsandreports/style.css. Allows live switching of hero KPIs, pass rates, latency metrics, and engine-specific leaderboards withlocalStoragepersistence.claude-opus-4-6-thinking,gemini-3.8-flash-medium,gemini-3.8-flash-low,claude-sonnet-4-6,gpt-oss-120b-medium,gemini-3.8-flash-high) on both DuckDB 2.0 and PostgreSQL 18.7.4. Physical Plan Optimization & Indexing Architecture Analysis
reports/index.html,README.md,BENCHMARK_REPORT.md, andPHYSICAL_PLAN_OPTIMIZATION_AND_LLM_ANALYSIS.md:INCLUDE) to enable pure Index-Only Scans, HNSW vector indexes for 100x ANN acceleration, GIN trigram indexes for substring matching, and BRIN indexes for append-only timestamp streams.EXPLAIN ANALYZEfeedback loops, and engine-aware primitive guidance.Verification & Testing
pytest tests/ -v(14/14 passed)./verify.sh(PASSED across all 4 stages: unit tests, DuckDB golden baseline, PostgreSQL golden baseline, and offline trap evaluation).github/workflows/ci.ymlto automatically initialize the PostgreSQL container and run the dual-engine test suite.