Insights / Tag
#postgres
Engineering
Postgres upsert errors: choose one row per conflict key
A bulk upsert needs one proposed row per conflict key. Define what wins before adding DISTINCT, retries or smaller batches.
Engineering
Postgres deadlocks: fix the order, retry the transaction
The last failed statement is only the end of the story. Reconstruct the cycle, then make every writer acquire the same resources in the same order.
Engineering
Postgres invalid indexes: recover a concurrent build
A failed concurrent build can leave an index name behind. A retry that checks only the name can preserve the failure.
Engineering
Postgres idle in transaction: find the owner and fix it
A waiting query and an exhausted pool can share an unfinished transaction. Find its owner before increasing capacity.
Cloud & Infrastructure News
PostgreSQL 19 RC 1: build an upgrade rehearsal
News analysis, 17 October 2026: treat the release candidate as a testing milestone and turn upgrade intent into evidence before a production decision.
SaaS Architecture
Postgres row-level security for multi-tenant SaaS
RLS works when the role, the tenant setting and the connection pool all cooperate. Here is how to check each one.