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.
40001 is not a query error

40001 is not a query error

Comments
8 min read
Supabase Auth Schema Explained: Users, Identities, Sessions

Supabase Auth Schema Explained: Users, Identities, Sessions

Comments
4 min read
I put reminders, contacts and recipes in the same Postgres table. Here is the SQL, and what it cost.

I put reminders, contacts and recipes in the same Postgres table. Here is the SQL, and what it cost.

Comments
5 min read
Using an AST to validate AI-generated PostgreSQL before it runs

Using an AST to validate AI-generated PostgreSQL before it runs

Comments
3 min read
The RLS Policy Was Correct. The Write Was Still Wrong.

The RLS Policy Was Correct. The Write Was Still Wrong.

Comments
3 min read
MCP vs. a Direct Database Connection: A Security and Workflow Comparison

MCP vs. a Direct Database Connection: A Security and Workflow Comparison

Comments
7 min read
One View Per Layer: Four Sharp Edges I Found in My Own Code

One View Per Layer: Four Sharp Edges I Found in My Own Code

Comments
6 min read
A Small Fintech Challenge, and Why I Let Postgres Hold the Money

A Small Fintech Challenge, and Why I Let Postgres Hold the Money

Comments
4 min read
Why Your OAuth Integration Randomly Returns invalid_grant (and How to Stop Two Workers From Racing)

Why Your OAuth Integration Randomly Returns invalid_grant (and How to Stop Two Workers From Racing)

Comments
7 min read
Building WafyURL: A High-Performance URL Shortener with Real-Time Analytics & Security

Building WafyURL: A High-Performance URL Shortener with Real-Time Analytics & Security

Comments
2 min read
Moving Oracle to PostgreSQL with a Single `INSERT` — No Oracle Client, No Python

Moving Oracle to PostgreSQL with a Single `INSERT` — No Oracle Client, No Python

Comments
11 min read
Redis Caching in NestJS: I Cut Database Calls by 60% in Production

Redis Caching in NestJS: I Cut Database Calls by 60% in Production

Comments
5 min read
Don't pick a partial index for speed: what I measured on a 10M-row Postgres queue table

Don't pick a partial index for speed: what I measured on a 10M-row Postgres queue table

Comments
9 min read
A rate limiter changes when it leaves memory

A rate limiter changes when it leaves memory

Comments
4 min read
Postgres Can Do Typo-Tolerant Search. You Don't Need Elasticsearch Yet.

Postgres Can Do Typo-Tolerant Search. You Don't Need Elasticsearch Yet.

1
Comments
3 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.