Skip to content

Insights / Tag

#postgres

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

    Dopstack Engineering · · 7 min read

  2. 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.

    Dopstack Engineering · · 7 min read

  3. 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.

    Dopstack Engineering · · 7 min read

  4. 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.

    Dopstack Engineering · · 8 min read

  5. 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.

    Dopstack Engineering · · 7 min read

  6. 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.

    Dopstack Engineering · · 5 min read