Blog Columns
Six thematic columns, each with its own dedicated RSS feed.
Database Guru
75posts
Database news, industry surveys, architecture, and best practices.
Cloud-Exiter
66posts
Cloud economics, repatriation, and building sovereign infrastructure.
Postgres Mage
126posts
PostgreSQL ecosystem, internals, extensions, and production tuning.
AI Agent Explorer
97posts
Practical engineering with coding agents, LLMs, AI4DB, and DB4AI.
Travel Notes
12posts
Trips, hikes, landscapes, and field notes across mountains and seas.
Miscellaneous
40posts
Essays, reflections, and personal writing inside and outside of tech.

Starting from /0: Understanding Errors and Exceptions
What happens when you divide by 0 in a computer? The answer isn't fixed - it can differ across different operating systems, programming languages, and even different compilers.

UUID Properties, Principles and Applications
UUID properties, principles and applications, and how to manipulate UUIDs using PostgreSQL stored procedures.

Tag Classification Theory
Recently, I needed to design a tag management system for a business. During the process of organizing existing tags, I developed this theoretical framework.

Switzerland of Northern Xinjiang: Kanas Trekking
I never expected my first outdoor trekking experience would be in Kanas.

Overview of Sorting Algorithms
Sorting algorithms are the most fundamental, widely applicable, and frequently tested algorithms in interviews. This article summarizes classic sorting algorithms: selection sort, insertion sort, …

PostgreSQL MongoFDW Installation and Deployment
Recently had business requirements to access MongoDB through PostgreSQL FDW, but compiling MongoDB FDW is really a nightmare.

Fundamentals of Information Theory: Entropy
Reading notes on 'Elements of Information Theory': What is entropy? Entropy is a measure of the uncertainty of random variables, and also a measure of the information needed to describe random …

Baiji 1509 Training Reflections
I once thought all day but learned nothing, which is not as good as what I learned in a moment. I came to Hangzhou to attend Alibaba's Baiji training to learn from seniors and improve my knowledge …

2014 Year-End Summary
Unable to sleep in the dead of night, spending the last hour of 2014 reviewing this year and looking ahead to next year seems quite appropriate.

On Computational Thinking
A paper for "History of Secrecy and Secrecy Systems" course, discussing computational thinking and its significance in undergraduate education, as well as methods for cultivating computational …

In Praise of Mathematics
What a wonderful subject mathematics is

Humans, Society, and Neural Networks
Neural networks emerged inspired by the human brain, so the operational mechanisms of human society also have various similarities and connections with neural network training. Some thoughts on …

2013 Year-End Summary
In the final half hour of 2013, reflecting on my experiences this year fills me with deep emotion.

Computer Networks and Logistics Systems
Computer networks are like a logistics system, with the only difference being that logistics systems transmit material entities like mail and packages, while computer networks transmit intangible …

Worldview, Values, and Life Philosophy
One inevitably traces back to questions about the world's origins, and answering these questions is the process of establishing one's cornerstone principles.

On the Hierarchy of Knowledge
Through observation and reflection, we can divide the mental process of deepening understanding from accepting knowledge to the highest level of 'enlightenment' into four stages: knowledge, …

Thinking Characteristics of Eastern and Western People
Eastern people emphasize macro-to-micro thinking, while Western people emphasize micro-to-macro thinking. In my view, this is the philosophical root of East-West thinking differences and many macro …
What Exactly Are Natural Numbers?
The concept of natural numbers should have been learned in elementary school. The foundation of all elementary mathematics begins with such a definition. However, when I entered university, I …

Fundamental Concepts of Linear Algebra
Connecting all concepts in linear algebra through one main thread

Views on Love
What ultimately determines romance and marriage?

Starting from /0: Understanding Errors and Exceptions
What happens when you divide by 0 in a computer? The answer isn't fixed - it can differ across different operating systems, programming languages, and even different compilers.

UUID Properties, Principles and Applications
UUID properties, principles and applications, and how to manipulate UUIDs using PostgreSQL stored procedures.

Tag Classification Theory
Recently, I needed to design a tag management system for a business. During the process of organizing existing tags, I developed this theoretical framework.

Switzerland of Northern Xinjiang: Kanas Trekking
I never expected my first outdoor trekking experience would be in Kanas.

Overview of Sorting Algorithms
Sorting algorithms are the most fundamental, widely applicable, and frequently tested algorithms in interviews. This article summarizes classic sorting algorithms: selection sort, insertion sort, …

PostgreSQL MongoFDW Installation and Deployment
Recently had business requirements to access MongoDB through PostgreSQL FDW, but compiling MongoDB FDW is really a nightmare.

Fundamentals of Information Theory: Entropy
Reading notes on 'Elements of Information Theory': What is entropy? Entropy is a measure of the uncertainty of random variables, and also a measure of the information needed to describe random …

Baiji 1509 Training Reflections
I once thought all day but learned nothing, which is not as good as what I learned in a moment. I came to Hangzhou to attend Alibaba's Baiji training to learn from seniors and improve my knowledge …

2014 Year-End Summary
Unable to sleep in the dead of night, spending the last hour of 2014 reviewing this year and looking ahead to next year seems quite appropriate.

On Computational Thinking
A paper for "History of Secrecy and Secrecy Systems" course, discussing computational thinking and its significance in undergraduate education, as well as methods for cultivating computational …

In Praise of Mathematics
What a wonderful subject mathematics is

Humans, Society, and Neural Networks
Neural networks emerged inspired by the human brain, so the operational mechanisms of human society also have various similarities and connections with neural network training. Some thoughts on …

2013 Year-End Summary
In the final half hour of 2013, reflecting on my experiences this year fills me with deep emotion.

Computer Networks and Logistics Systems
Computer networks are like a logistics system, with the only difference being that logistics systems transmit material entities like mail and packages, while computer networks transmit intangible …

Worldview, Values, and Life Philosophy
One inevitably traces back to questions about the world's origins, and answering these questions is the process of establishing one's cornerstone principles.

On the Hierarchy of Knowledge
Through observation and reflection, we can divide the mental process of deepening understanding from accepting knowledge to the highest level of 'enlightenment' into four stages: knowledge, …

Thinking Characteristics of Eastern and Western People
Eastern people emphasize macro-to-micro thinking, while Western people emphasize micro-to-macro thinking. In my view, this is the philosophical root of East-West thinking differences and many macro …
What Exactly Are Natural Numbers?
The concept of natural numbers should have been learned in elementary school. The foundation of all elementary mathematics begins with such a definition. However, when I entered university, I …

Fundamental Concepts of Linear Algebra
Connecting all concepts in linear algebra through one main thread

Views on Love
What ultimately determines romance and marriage?
Starting from /0: Understanding Errors and Exceptions

What happens when you divide by 0 in a computer? Errors are errors, exceptions are exceptions. The distinction here is quite subtle. Yes, no typo - the title uses /0 not 0. So the question arises: What happens when you divide by 0? Constraints are …
What happens when you divide by 0 in a computer? Errors are errors, exceptions are exceptions. The distinction here is quite subtle. Yes, no typo - the title uses /0 not 0. So the question arises: What happens when you divide by 0? Constraints are …
UUID Properties, Principles and Applications

A recent project needed to generate business transaction IDs with the following requirements: IDs must be generated in a distributed manner, cannot depend on central node allocation while ensuring global uniqueness. IDs must contain timestamps and …
A recent project needed to generate business transaction IDs with the following requirements: IDs must be generated in a distributed manner, cannot depend on central node allocation while ensuring global uniqueness. IDs must contain timestamps and …
Tag Classification Theory

Recently, I needed to design a tag management system for a business. During the process of organizing existing tags, I developed this theoretical framework. 0. Tag Definition: Tag Taxonomy For tags, it’s difficult to provide a universally accepted …
Recently, I needed to design a tag management system for a business. During the process of organizing existing tags, I developed this theoretical framework. 0. Tag Definition: Tag Taxonomy For tags, it’s difficult to provide a universally accepted …
Switzerland of Northern Xinjiang: Kanas Trekking

I never expected my first outdoor trekking experience would be in Kanas. Kanas Route Jiadengyu - Hemu - Black Lake - Kanas - Baihaba Starting from Jiadengyu, head east along the cement road - that’s the route that doesn’t go through the scenic area. …
I never expected my first outdoor trekking experience would be in Kanas. Kanas Route Jiadengyu - Hemu - Black Lake - Kanas - Baihaba Starting from Jiadengyu, head east along the cement road - that’s the route that doesn’t go through the scenic area. …
Overview of Sorting Algorithms

Sorting algorithms are the most fundamental, widely applicable, and frequently tested algorithms in interviews. A sorting algorithm is an algorithm that can arrange a string of data in a specific order. Where: Output result is an ascending sequence …
Sorting algorithms are the most fundamental, widely applicable, and frequently tested algorithms in interviews. A sorting algorithm is an algorithm that can arrange a string of data in a specific order. Where: Output result is an ascending sequence …
PostgreSQL MongoFDW Installation and Deployment

Update: Recently MongoFDW has been taken over by Cybertech for maintenance, so maybe it’s not as bad anymore. Recently had business requirements to access MongoDB through PostgreSQL FDW. Initially I thought this was a pretty easy task. But what …
Update: Recently MongoFDW has been taken over by Cybertech for maintenance, so maybe it’s not as bad anymore. Recently had business requirements to access MongoDB through PostgreSQL FDW. Initially I thought this was a pretty easy task. But what …
Fundamentals of Information Theory: Entropy

Information theory answers two fundamental questions in communication theory: The critical value for data compression: entropy HHH The critical value for communication transmission rate: channel capacity CCC But information theory’s content extends …
Information theory answers two fundamental questions in communication theory: The critical value for data compression: entropy HHH The critical value for communication transmission rate: channel capacity CCC But information theory’s content extends …
Baiji 1509 Training Reflections

On September 23rd, I came to Hangzhou to attend Baiji training. Unlike Bai’a, I didn’t have special expectations for Baiji beforehand. After all, for a one-day training, it might just be going through the motions, and I was skeptical about how much I …
On September 23rd, I came to Hangzhou to attend Baiji training. Unlike Bai’a, I didn’t have special expectations for Baiji beforehand. After all, for a one-day training, it might just be going through the motions, and I was skeptical about how much I …
2014 Year-End Summary

Unable to sleep in the dead of night, spending the last hour of 2014 reviewing this year and looking ahead to next year seems quite appropriate. Casually flipping through my 2013 year-end summary and 2014 diary entries, I’m filled with many emotions. …
Unable to sleep in the dead of night, spending the last hour of 2014 reviewing this year and looking ahead to next year seems quite appropriate. Casually flipping through my 2013 year-end summary and 2014 diary entries, I’m filled with many emotions. …
On Computational Thinking

A paper for “History of Secrecy and Secrecy Systems” course, discussing computational thinking and its significance in undergraduate education. I guess this was the teacher’s own assignment. 1. Abstract This paper discusses related content on …
A paper for “History of Secrecy and Secrecy Systems” course, discussing computational thinking and its significance in undergraduate education. I guess this was the teacher’s own assignment. 1. Abstract This paper discusses related content on …
In Praise of Mathematics

In the very center of humanity’s rational world An eternal ivory tower stands tall upon it From the depths of the vast intuitive earth below Rising straight to the vicinity of the chaotic heavens where dense clouds roll Countless electric branches …
In the very center of humanity’s rational world An eternal ivory tower stands tall upon it From the depths of the vast intuitive earth below Rising straight to the vicinity of the chaotic heavens where dense clouds roll Countless electric branches …
Humans, Society, and Neural Networks

Neural networks emerged inspired by the human brain, so the operational mechanisms of human society also have various similarities and connections with neural network training. This year, I dabbled in many other disciplines. Most were superficial …
Neural networks emerged inspired by the human brain, so the operational mechanisms of human society also have various similarities and connections with neural network training. This year, I dabbled in many other disciplines. Most were superficial …
2013 Year-End Summary

In the final half hour of 2013, reflecting on my experiences this year fills me with deep emotion. In 2013, I proved many things. From a typical underperformer to achieving excellence in all professional courses with perfect grades and earning praise …
In the final half hour of 2013, reflecting on my experiences this year fills me with deep emotion. In 2013, I proved many things. From a typical underperformer to achieving excellence in all professional courses with perfect grades and earning praise …
Computer Networks and Logistics Systems

Computer networks are like a logistics system, with the difference being that logistics systems transmit material entities like mail and packages, while computer networks transmit intangible information. Computer networks are divided into five layers …
Computer networks are like a logistics system, with the difference being that logistics systems transmit material entities like mail and packages, while computer networks transmit intangible information. Computer networks are divided into five layers …
Worldview, Values, and Life Philosophy

One inevitably traces back to questions about the world’s origins, and answering these questions is the process of establishing one’s cornerstone principles. Perhaps because I recently resolved a psychological issue that had troubled me for nearly …
One inevitably traces back to questions about the world’s origins, and answering these questions is the process of establishing one’s cornerstone principles. Perhaps because I recently resolved a psychological issue that had troubled me for nearly …
On the Hierarchy of Knowledge

Through observation and reflection, we can divide the mental process of deepening understanding from accepting knowledge to the highest level of “enlightenment” into four stages: knowledge, understanding, consciousness, and enlightenment. The overall …
Through observation and reflection, we can divide the mental process of deepening understanding from accepting knowledge to the highest level of “enlightenment” into four stages: knowledge, understanding, consciousness, and enlightenment. The overall …
Thinking Characteristics of Eastern and Western People

Eastern people emphasize macro-to-micro thinking, while Western people emphasize micro-to-macro thinking. In my view, this is the root of East-West thinking differences. First, we need to clarify the definition of East and West. Here, “East” refers …
Eastern people emphasize macro-to-micro thinking, while Western people emphasize micro-to-macro thinking. In my view, this is the root of East-West thinking differences. First, we need to clarify the definition of East and West. Here, “East” refers …
What Exactly Are Natural Numbers?
The concept of natural numbers should have been learned in elementary school. The foundation of all elementary mathematics begins with such a definition. However, when I entered university, I encountered this question again in discrete mathematics. …
The concept of natural numbers should have been learned in elementary school. The foundation of all elementary mathematics begins with such a definition. However, when I entered university, I encountered this question again in discrete mathematics. …
Fundamental Concepts of Linear Algebra

Connecting all concepts in linear algebra through one main thread Vectors There are three perspectives on vectors: Physics perspective: A vector is an arrow with direction and magnitude Computer perspective: A vector is an ordered list Mathematical …
Connecting all concepts in linear algebra through one main thread Vectors There are three perspectives on vectors: Physics perspective: A vector is an arrow with direction and magnitude Computer perspective: A vector is an ordered list Mathematical …
Views on Love

Recently, my roommate broke up with his girlfriend. What was once a lovey-dovey, inseparable couple suddenly separated just like that. This inevitably made me start thinking about some questions I hadn’t carefully considered before: What ultimately …
Recently, my roommate broke up with his girlfriend. What was once a lovey-dovey, inseparable couple suddenly separated just like that. This inevitably made me start thinking about some questions I hadn’t carefully considered before: What ultimately …