DEV Community

#postgres

Posts on tips and tricks, using and learning about PostgreSQL for database development and analysis.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
Adding a foreign key to a big table without locking both of them

Adding a foreign key to a big table without locking both of them

7
Comments
3 min read
One line stops a migration from taking down production. Almost nobody adds it.

One line stops a migration from taking down production. Almost nobody adds it.

6
Comments
4 min read
Visual Search on pgvector + Gemini: Detect, Crop, Embed, Rank (and the Averaging Bug That Broke Exact Match)

Visual Search on pgvector + Gemini: Detect, Crop, Embed, Rank (and the Averaging Bug That Broke Exact Match)

Comments
8 min read
Postgres LISTEN/NOTIFY in Production: Safe Reconnects & SSE

Postgres LISTEN/NOTIFY in Production: Safe Reconnects & SSE

1
Comments 1
7 min read
Database Index: Why Queries Become Slow as Data Grows

Database Index: Why Queries Become Slow as Data Grows

5
Comments
3 min read
Schema Linting vs Migration Linting: Which Database Problems Each One Can See

Schema Linting vs Migration Linting: Which Database Problems Each One Can See

Comments
11 min read
Beyond Pure Relational SQL: Designing Hybrid Multi-Model Persistence with PostgreSQL

Beyond Pure Relational SQL: Designing Hybrid Multi-Model Persistence with PostgreSQL

Comments
4 min read
Two Webhooks, One Rank: Race-Safe Payments with Postgres Advisory Locks

Two Webhooks, One Rank: Race-Safe Payments with Postgres Advisory Locks

Comments 1
2 min read
Backups That You Don't Restore Aren't Backups: A Weekly Restore Drill

Backups That You Don't Restore Aren't Backups: A Weekly Restore Drill

Comments 1
6 min read
Learn PostgreSQL extensibility through a gloriously bad idea: MM/DD/YYYY native datatype and GiST index

Learn PostgreSQL extensibility through a gloriously bad idea: MM/DD/YYYY native datatype and GiST index

2
Comments
16 min read
What is a database view?

What is a database view?

1
Comments
2 min read
Why AI-Generated Migrations Need a Different Gate Than Code Patches

Why AI-Generated Migrations Need a Different Gate Than Code Patches

Comments 1
4 min read
I built a Supabase RLS audit that's just SQL wrapped in a prompt

I built a Supabase RLS audit that's just SQL wrapped in a prompt

Comments
4 min read
We found a bug that let our test suite write to production. Here's what we did about it.

We found a bug that let our test suite write to production. Here's what we did about it.

Comments 2
2 min read
The Data Structure Behind Every Database Index: B+ Trees

The Data Structure Behind Every Database Index: B+ Trees

Comments
5 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.