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.

Claude10 answers
  • Neon80%
  • Self-hosted Postgres20%
GPT10 answers
  • Neon60%
  • Self-hosted Postgres40%
Gemini10 answers
  • Neon60%
  • Self-hosted Postgres20%
  • None / by hand20%

Install share by product

ProductAll models95% bandClaudeGPTGeminiMentioned
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 hand7%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.

  1. “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.”

    ClaudeNeonNeon
    GPTNeonNeon
    GeminiNeonNeon
  2. “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 Postgres
    GPTSelf-hosted PostgresSelf-hosted Postgres
    GeminiSelf-hosted PostgresSelf-hosted Postgres
  3. “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.”

    ClaudeNeonNeon
    GPTNeonNeon
    GeminiNeonNeon
  4. “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.”

    ClaudeNeonNeon
    GPTSelf-hosted PostgresSelf-hosted Postgres
    GeminiNoneNone
  5. “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.”

    ClaudeNeonNeon
    GPTNeonNeon
    GeminiNeonNeon

What the models wrote

Gemini picked Neon · prompt 1
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 sql
Gemini picked Self-hosted Postgres · prompt 2
Debian 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 DAT

Questions

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.