
11/17/2026
How to Fix PostgreSQL Could Not Serialize Access
Fix PostgreSQL could not serialize access (SQLSTATE 40001): check the isolation level, retry the whole transaction, and keep serializable work short.
By Muhammad Wilayat Shah
ReadTag
Published posts with this tag.

11/17/2026
Fix PostgreSQL could not serialize access (SQLSTATE 40001): check the isolation level, retry the whole transaction, and keep serializable work short.
By Muhammad Wilayat Shah
Read
11/4/2026
Duplicate orders, negative stock, double charges? Learn how to find and fix a race condition in programming with atomic updates, row locks and Redis locks.
By Muhammad Wilayat Shah
Read
10/30/2026
Month-end reports froze our ERP's invoice screen. Instead of restarting PostgreSQL, find the exact session in pg_stat_activity, trace blockers with pg_blocking_pids, cancel or terminate only that pid, then add per-role timeouts. Real PostgreSQL 17 output.
By Muhammad Wilayat Shah
Read
10/28/2026
A slow button at a hospital reception created 31 double invoices in one day, even with a unique rule. Here is what really stops duplicate submissions in Laravel: locks, unique indexes, idempotency keys and PRG, tested in a lab.
By Muhammad Wilayat Shah
Read
10/25/2026
A pharmacy oversell in our HMS showed 4 strips on screen and none on the shelf. Here is the inventory management database design I use now, tested on PostgreSQL 17: atomic stock updates, a movement ledger, reservations and reconciliation.
By Muhammad Wilayat Shah
Read
10/21/2026
A pharmacy checkout froze on a payment call inside an open transaction. Here is how I find PostgreSQL idle in transaction sessions, clear the locks, and stop slot exhaustion.
By Muhammad Wilayat Shah
Read