Pigsty Blog Articles

Posts in 2018
  • PostgreSQL Development Convention (2018 Edition)

    June 20, 2018 in PostgreSQL

    PostgreSQL Development Convention (2018 Edition)

    Without rules, there can be no order. This article compiles a development specification for PostgreSQL database principles and features, which can reduce confusion encountered when using PostgreSQL.

    Without rules, there can be no order. This article compiles a development specification for PostgreSQL database principles and features, which can reduce confusion encountered when using PostgreSQL.

  • Concurrency Anomalies Explained

    June 19, 2018 in Database

    Concurrency Anomalies Explained

    Concurrent programs are hard to write correctly and even harder to write well. Many programmers simply throw these problems at the database... But even the most sophisticated databases won't help if you don't understand concurrency anomalies and isolation levels.

    Concurrent programs are hard to write correctly and even harder to write well. Many programmers simply throw these problems at the database... But even the most sophisticated databases won't help if you don't understand concurrency anomalies and isolation levels.

  • What Are PostgreSQL's Advantages?

    June 10, 2018 in PostgreSQL

    What Are PostgreSQL's Advantages?

    PostgreSQL's slogan is "The World's Most Advanced Open-Source Relational Database," but I think the most vivid characterization should be: The Full-Stack Database That Does It All - one tool to rule them all.

    PostgreSQL's slogan is "The World's Most Advanced Open-Source Relational Database," but I think the most vivid characterization should be: The Full-Stack Database That Does It All - one tool to rule them all.

  • Blockchain and Distributed Databases

    June 09, 2018 in Database

    Blockchain and Distributed Databases

    The technical essence, functionality, and evolution of blockchain is distributed databases. Specifically, it's a **Byzantine Fault Tolerant (resistant to malicious node attacks) distributed (leaderless replication) database**.

    The technical essence, functionality, and evolution of blockchain is distributed databases. Specifically, it's a **Byzantine Fault Tolerant (resistant to malicious node attacks) distributed (leaderless replication) database**.

  • KNN Ultimate Optimization: From RDS to PostGIS

    June 06, 2018 in PostgreSQL

    KNN Ultimate Optimization: From RDS to PostGIS

    Ultimate optimization of KNN problems, from traditional relational design to PostGIS

    Ultimate optimization of KNN problems, from traditional relational design to PostGIS

  • Efficient Administrative Region Lookup with PostGIS

    June 06, 2018 in PostgreSQL

    Efficient Administrative Region Lookup with PostGIS

    How to efficiently solve the typical reverse geocoding problem: determining administrative regions based on user coordinates.

    How to efficiently solve the typical reverse geocoding problem: determining administrative regions based on user coordinates.

  • Monitoring Table Size in PostgreSQL

    May 14, 2018 in PostgreSQL

    Monitoring Table Size in PostgreSQL

    Tables in PostgreSQL correspond to many physical files. This article explains how to calculate the actual size of a table in PostgreSQL.

    Tables in PostgreSQL correspond to many physical files. This article explains how to calculate the actual size of a table in PostgreSQL.

  • Consistency: An Overloaded Term

    May 08, 2018 in Database

    Consistency: An Overloaded Term

    The term "consistency" is heavily overloaded, representing different concepts in different contexts. For example, the C in ACID and the C in CAP actually refer to different concepts.

    The term "consistency" is heavily overloaded, representing different concepts in different contexts. For example, the C in ACID and the C in CAP actually refer to different concepts.

  • Why Study Database Principles

    April 20, 2018 in Database

    Why Study Database Principles

    Those who only know how to code are just programmers; **learn databases well, and you can at least make a living**; but for **excellent** engineers, merely **using** databases is far from enough.

    Those who only know how to code are just programmers; **learn databases well, and you can at least make a living**; but for **excellent** engineers, merely **using** databases is far from enough.

  • PgAdmin Installation and Configuration

    April 14, 2018 in PostgreSQL

    PgAdmin Installation and Configuration

    PgAdmin is a GUI program for managing PostgreSQL, written in Python, but it's quite dated and requires some additional configuration.

    PgAdmin is a GUI program for managing PostgreSQL, written in Python, but it's quite dated and requires some additional configuration.