Posts in 2023
Posts in 2021
  • Collation in PostgreSQL

    2021-03-05 in PG Admin

    Featured Image for Collation in PostgreSQL

    Why does Pigsty default to locale=C and encoding=UTF8 when initializing PostgreSQL databases? The answer is simple: Unless you explicitly need LOCALE-specific features, you should never configure anything other than C.UTF8 for character encoding and …

    Read more

  • PostgreSQL Replica Identity Explained

    2021-03-03 in PG Admin

    Featured Image for PostgreSQL Replica Identity Explained

    Introduction: DIY Logical Replication The concept of Replica Identity serves logical replication. Logical replication fundamentally works by decoding row-level changes (INSERT/UPDATE/DELETE) on published tables and applying them to subscribers. The …

    Read more

  • PG Logical Replication Explained

    2021-03-03 in PG Admin

    Featured Image for PG Logical Replication Explained

    Logical Replication Logical Replication is a method of replicating data objects and their changes based on the Replica Identity (typically primary keys) of data objects. The term Logical Replication contrasts with Physical Replication, where …

    Read more

  • Slow Query Diagnosis

    2021-02-23 in PG Admin

    Featured Image for Slow Query Diagnosis

    You can’t optimize what you can’t measure Slow queries are the arch-enemy of online business databases. Knowing how to diagnose and locate slow queries is an essential skill for DBAs. This article introduces a general methodology for …

    Read more