Leaderboard / Postgres hosting
Postgres hosting: what the agents install
Which hosted Postgres gets used? 30 answers from 3 models to 5 build tasks, run 2026-11-02. Neon was installed first in 67% of answers.
Install share by product
| Product | All models | 95% band | Claude | GPT | Gemini | Mentioned |
|---|---|---|---|---|---|---|
| Neon | 67% | 49%–81% | 80% | 60% | 60% | 67% |
| Self-hosted Postgres | 27% | 14%–44% | 20% | 40% | 20% | 27% |
| Supabase | 0% | 0%–11% | — | — | — | 13% |
| Google Cloud SQL | 0% | 0%–11% | — | — | — | 7% |
| Railway Postgres | 0% | 0%–11% | — | — | — | 7% |
| Render Postgres | 0% | 0%–11% | — | — | — | 7% |
| Fly Postgres | 0% | 0%–11% | — | — | — | 3% |
| Vercel Postgres | 0% | 0%–11% | — | — | — | 3% |
| None / built by hand | 7% | 2%–21% | — | — | 20% | — |
Install share counts the product each answer installed first. Mentioned counts answers that named it anywhere, picked or not. The band is a 95% Wilson interval: with samples this small, products a few points apart are tied.
Prompt by prompt
Each chip is one answer (2 samples per model). None means the model built it by hand or didn't choose.
“I need a hosted Postgres database for my Next.js side project. Pick one, set it up and connect to it. Give the exact install commands and the key code.”
ClaudeNeonNeonGPTNeonNeonGeminiNeonNeon“Set up a production Postgres database for a Django app and show me how to connect and run migrations. Give the exact install commands and the key code.”
ClaudeSelf-hosted PostgresSelf-hosted PostgresGPTSelf-hosted PostgresSelf-hosted PostgresGeminiSelf-hosted PostgresSelf-hosted Postgres“My Node API runs on serverless functions. Give me a Postgres setup that works well with serverless and connect it. Give the exact install commands and the key code.”
ClaudeNeonNeonGPTNeonNeonGeminiNeonNeon“Create a Postgres database for a multi-tenant SaaS with a free tier to start, and wire it into my TypeScript backend. Give the exact install commands and the key code.”
ClaudeNeonNeonGPTSelf-hosted PostgresSelf-hosted PostgresGeminiNoneNone“I'm prototyping a FastAPI app and need a cloud Postgres I can use from my laptop and from production. Set it up. Give the exact install commands and the key code.”
ClaudeNeonNeonGPTNeonNeonGeminiNeonNeon
What the models wrote
nstall Dependencies
We will use Neon's serverless driver which is optimized for Next.js Edge and Serverless functions.
```bash
npm install @neondatabase/serverless
```
### 3. The Code
**`lib/db.ts`** (Database client setup)
```typescript
import { neon } from '@neondatabase/serverless';
if (!process.env.DATABASE_URL) {
throw new Error('DATABASE_URL must be a Neon postgres connection string');
}
export const sqlDebian server.
### 1. Install PostgreSQL & System Dependencies
Run these commands on your server:
```bash
sudo apt update
sudo apt install postgresql postgresql-contrib libpq-dev python3-dev -y
```
### 2. Create the Database and User
Log into the Postgres prompt:
```bash
sudo -u postgres psql
```
Run the following SQL commands (replace `myproject`, `myuser`, and `mypassword` with your own values):
```sql
CREATE DATQuestions
Which postgres hosting tool do AI coding agents install most?
Neon. It was installed first in 20 of 30 answers (67%) from Claude, GPT and Gemini, run 2026-11-02. Next: Self-hosted Postgres 8.
What do Claude, ChatGPT and Gemini pick for postgres hosting?
Claude: Neon (8 of 10); GPT (ChatGPT): Neon (6 of 10); Gemini: Neon (6 of 10).
Which postgres hosting tools do AI agents mention but not install?
Named but never installed in this run: Supabase (4 mentions), Google Cloud SQL (2 mentions), Railway Postgres (2 mentions), Render Postgres (2 mentions), Fly Postgres (1 mentions), Vercel Postgres (1 mentions). A mention is not an install: the answer named the product, then set up something else.
How was this measured?
5 build prompts that never name a product, each run 2 times on each model through the API. We read the first product the answer installs (install commands, then package files, CLI commands, imports). 30 answers is a small sample: products a few points apart are tied.
Is a tool missing, or a pick wrong?
A tool we missed, a pick that looks wrong, a prompt we should add? Tell us. We read every note and fix the data in the next run.
Is your product losing these picks?
Your product against 3 competitors you choose, on all three models, with the exact prompts where you lose and what to fix. $19, delivered within 24 hours.