Skip to content
OY ozgur yildiz
home writing work about
say hi →
/ writing / tags / #PostgreSQL

#PostgreSQL

11 posts tagged with this topic. ← All tags

  • Jun 25, 2026

    The query planner: why the same query runs differently on different data.

    PostgreSQL's query planner chooses how to execute a query based on table statistics. Understanding that process explains why query performance changes as data changes.

  • Jun 22, 2026

    Connection pooling math: how to calculate the right pool size.

    More connections isn't always better. Database connections are expensive resources, and the optimal pool size has a formula — here's how to work it out.

  • Jun 18, 2026

    Partial indexes: smaller, faster indexes for filtered queries.

    A partial index only indexes rows that match a condition. For queries that always filter on a specific value, a partial index is smaller, faster, and cheaper to maintain.

  • Jun 15, 2026

    Index-only scans: the PostgreSQL optimization that skips the heap.

    When all the columns a query needs are in an index, PostgreSQL can answer the query from the index alone — without touching the table at all.

  • Jun 11, 2026

    MVCC: how PostgreSQL lets reads and writes coexist.

    PostgreSQL's MVCC keeps multiple versions of each row so readers never block writers and writers never block readers. Here's how the mechanism works.

  • Jun 8, 2026

    Write-ahead logging: the mechanism behind database durability.

    WAL is how PostgreSQL guarantees that committed transactions survive crashes. Understanding it explains database performance characteristics and replication.

  • Jun 1, 2026

    Optimistic concurrency: handling conflicts without locking rows.

    Pessimistic locking serializes access to data and creates contention. Optimistic concurrency lets transactions proceed freely and detects conflicts only when they actually occur.

  • Dec 8, 2025

    Connection pooling at scale: why PgBouncer exists.

    How PgBouncer pools database connections to handle high concurrency, the three pooling modes, and how to configure it.

  • Dec 4, 2025

    Database replication: read replicas and why they help.

    How PostgreSQL replication works, when read replicas make sense, and how to route reads and writes in your application.

  • Oct 13, 2025

    Database connections in serverless: the problem and the solutions.

    Why traditional database connection pooling breaks in serverless environments, and the patterns that actually work.

  • Jun 13, 2024

    Offset pagination breaks at scale. Here's how cursor pagination fixes it.

    OFFSET-based pagination is easy to implement but produces inconsistent results as data changes. Cursor pagination is stable, performant, and the right default for most APIs.

OY ozgur yildiz
GitHub LinkedIn Email RSS
© 2026 ozgur yildiz. all rights reserved.