Pigsty Blog Articles

Posts in 2018
  • Incident-Report: Integer Overflow from Rapid Sequence Number Consumption

    July 20, 2018 in PostgreSQL

    Incident-Report: Integer Overflow from Rapid Sequence Number Consumption

    If you use Integer sequences on tables, you should consider potential overflow scenarios.

    Read more

    If you use Integer sequences on tables, you should consider potential overflow scenarios.

    Read more

  • PostgreSQL Trigger Usage Considerations

    July 07, 2018 in PostgreSQL

    PostgreSQL Trigger Usage Considerations

    Detailed understanding of trigger management and usage in PostgreSQL

    Read more

    Detailed understanding of trigger management and usage in PostgreSQL

    Read more

  • GeoIP Geographic Reverse Lookup Optimization

    July 07, 2018 in PostgreSQL

    GeoIP Geographic Reverse Lookup Optimization

    A common requirement in application development is GeoIP conversion - converting source IP addresses to geographic coordinates or administrative divisions (country-state-city-county-town-village)

    Read more

    A common requirement in application development is GeoIP conversion - converting source IP addresses to geographic coordinates or administrative divisions (country-state-city-county-town-village)

    Read more

  • Understanding Character Encoding Principles

    July 01, 2018 in Database

    Understanding Character Encoding Principles

    Without understanding the basic principles of character encoding, even simple string operations like comparison, sorting, and random access can easily lead you into pitfalls. This article attempts to clarify these issues through a comprehensive explanation.

    Read more

    Without understanding the basic principles of character encoding, even simple string operations like comparison, sorting, and random access can easily lead you into pitfalls. This article attempts to clarify these issues through a comprehensive explanation.

    Read more

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

    Read more

    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.

    Read more

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

    Read more

    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.

    Read more

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

    Read more

    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.

    Read more

  • 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**.

    Read more

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

    Read more

  • 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

    Read more

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

    Read more

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

    Read more

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

    Read more