Skip to content

Ruohang Feng

Pigsty founder, PostgreSQL mage, database guru, cloud-exit evangelist

Ruohang Feng (@Vonng) is the author and founder of Pigsty, a software engineer and open source enthusiast who has been working on PostgreSQL infrastructure since 2018.

Architect, DBA and full-stack engineer @ TanTan, Alibaba and Apple. Independent open source contributor — GitStar Ranking 585, Top 20 active committers in China. Chinese translator of DDIA and PostgreSQL Internals.

Elsewhere

  • AWS Acquires DuckDB: The Duck Flies into the Amazon Rainforest

    By Ruohang Feng In Database 2093 words 10 min

    Ruohang FengDuckDBAWSDatabaseOpen Source

    AWS Acquires DuckDB: The Duck Flies into the Amazon Rainforest

    Original on WeChat | August 26, 2026 On August 26, Amazon made it official: AWS has signed a definitive agreement to acquire DuckLabs, the company behind DuckDB. The deal is expected to close in early September; the price was not disclosed. The team …

    Original on WeChat | August 26, 2026 On August 26, Amazon made it official: AWS has signed a definitive agreement to acquire DuckLabs, the company behind DuckDB. The deal is expected to close in early September; the price was not disclosed. The team …

  • Apple Skipped the Event and Quietly Launched a 512 GB Mac Studio

    By Ruohang Feng In Database 2396 words 12 min

    Ruohang FengAppleMac StudioLocal AI

    Apple Skipped the Event and Quietly Launched a 512 GB Mac Studio

    Original article on WeChat There was no event today. No teaser campaign. Not even a credible rumor. Apple simply updated its website and launched the new Mac mini and Mac Studio. The Mac mini now comes with the M6 or M5 Pro; the Mac Studio gets the …

    Original article on WeChat There was no event today. No teaser campaign. Not even a credible rumor. Apple simply updated its website and launched the new Mac mini and Mac Studio. The Mac mini now comes with the M6 or M5 Pro; the Mac Studio gets the …

  • Omarchy: Is There Hope for Desktop Linux?

    By Ruohang Feng In Database 1455 words 7 min

    Ruohang FengLinuxOmarchyOperating Systems

    Omarchy: Is There Hope for Desktop Linux?

    WeChat Omarchy has been all over my X timeline lately. It is a desktop Linux distribution by DHH, and over the past couple of days the story has flooded the Chinese internet too. I previously translated DHH’s entire move off the cloud, and I follow …

    WeChat Omarchy has been all over my X timeline lately. It is a desktop Linux distribution by DHH, and over the past couple of days the story has flooded the Chinese internet too. I previously translated DHH’s entire move off the cloud, and I follow …

  • Did PostgreSQL Win Because Oracle Screwed Up?

    By Ruohang Feng In Database 4050 words 20 min

    Ruohang FengPostgreSQLOpen SourceGovernanceCloud

    Did PostgreSQL Win Because Oracle Screwed Up?

    Original WeChat article On August 19, 2026, The Register published an interview with Michael Stonebraker. The Turing Award winner who started the Berkeley Postgres project—and is still founding companies in his eighties—was asked why PostgreSQL had …

    Original WeChat article On August 19, 2026, The Register published an interview with Michael Stonebraker. The Turing Award winner who started the Berkeley Postgres project—and is still founding companies in his eighties—was asked why PostgreSQL had …

  • AGI Machine Guns Are Now Standard Issue

    By Ruohang Feng In AI 2916 words 14 min

    Ruohang FengAIAgentSoftware EngineeringOpen Source

    AGI Machine Guns Are Now Standard Issue

    In one month, my friend Jiang cobbled together four databases, an operating system, a programming language, a compiler, and a CPU—a microcosm of today’s AI frenzy. The past six weeks have been an AI carnival. My fleet of Max subscriptions has grown …

    In one month, my friend Jiang cobbled together four databases, an operating system, a programming language, a compiler, and a CPU—a microcosm of today’s AI frenzy. The past six weeks have been an AI carnival. My fleet of Max subscriptions has grown …

  • The World in Ten Years: What Gets Cheap, What Gets Expensive

    By Ruohang Feng In AI 5454 words 26 min

    Ruohang FengAISociety

    The World in Ten Years: What Gets Cheap, What Gets Expensive

    A price list for 2036 AI-generated content: 99%. 1. First, a Word on Prediction In 1960, Herbert Simon wrote a sentence in The New Science of Management Decision that would be quoted for decades: within twenty years, machines would be capable of …

    A price list for 2036 AI-generated content: 99%. 1. First, a Word on Prediction In 1960, Herbert Simon wrote a sentence in The New Science of Management Decision that would be quoted for decades: within twenty years, machines would be capable of …

  • Those Who Left the Cloud Made a Killing

    By Ruohang Feng In Cloud-Exit 2739 words 13 min

    Ruohang FengCloud-ExitCloudData Sovereignty

    Those Who Left the Cloud Made a Killing

    Leaving the cloud has never been just about saving money. It is about buying back your freedom. Cost curves move; sovereignty does not. I have spent years urging people to get out. Friends who listened two years ago made a killing. 1. The Best Trade …

    Leaving the cloud has never been just about saving money. It is about buying back your freedom. Cost curves move; sovereignty does not. I have spent years urging people to get out. Friends who listened two years ago made a killing. 1. The Best Trade …

  • Pigsty v4.5: 575 Extensions, Silo, Valkey, Kafka, and MySQL

    By Ruohang Feng In PIGSTY 3161 words 15 min

    Ruohang FengPigstyPigsty

    Pigsty v4.5: 575 Extensions, Silo, Valkey, Kafka, and MySQL

    GitHub Release | Release Note Pigsty v4.5 is officially out. At the end of the previous release, I said there might be a transitional v4.5 before 5.0. Here it is—except this “transitional” release ended up more packed than many full-fledged major …

    GitHub Release | Release Note Pigsty v4.5 is officially out. At the end of the previous release, I said there might be a transitional v4.5 before 5.0. Here it is—except this “transitional” release ended up more packed than many full-fledged major …

  • Why Are People Who Leave Big Tech So Useless?

    By Ruohang Feng In Cloud-Exit 3289 words 16 min

    Ruohang FengCloudSoftware EngineeringArchitectureCareer

    Why Are People Who Leave Big Tech So Useless?

    A cutting remark supposedly from Sam Altman has been making the rounds online: by the time people leave a big company, their ambition, aspiration, and capacity to think have withered to almost nothing. Tell one of them about something that could …

    A cutting remark supposedly from Sam Altman has been making the rounds online: by the time people leave a big company, their ambition, aspiration, and capacity to think have withered to almost nothing. Tell one of them about something that could …

  • What Can a One-Person Company Ship with $1,000 a Month in AI Subscriptions?

    By Ruohang Feng In AI 2359 words 12 min

    Ruohang FengAIAgent

    What Can a One-Person Company Ship with $1,000 a Month in AI Subscriptions?

    People keep asking what I have to show for pedaling seven $200-a-month Max subscriptions at once—including two comped through open-source programs. Honestly, I have lost count myself. After I published The Codex Reset Party Is Over: No More Free …

    People keep asking what I have to show for pedaling seven $200-a-month Max subscriptions at once—including two comped through open-source programs. Honestly, I have lost count myself. After I published The Codex Reset Party Is Over: No More Free …

  • SOW: Postpartum Care for 100,000 Packages

    By Ruohang Feng In Database 3358 words 16 min

    Ruohang FengPostgreSQLPigstyRepository

    SOW: Postpartum Care for 100,000 Packages

    Today, let’s talk about Postpartum Care for Sows—a Chinese meme for the sort of absurdly specialized practical topic nobody expects to discuss. This time, the sow in question is my new open-source project, SOW. When you maintain a PostgreSQL …

    Today, let’s talk about Postpartum Care for Sows—a Chinese meme for the sort of absurdly specialized practical topic nobody expects to discuss. This time, the sow in question is my new open-source project, SOW. When you maintain a PostgreSQL …

  • OINK: After Six Years of Wrestling with Documentation Frameworks, Codex Finally Got Me Over the Line

    By Ruohang Feng In Database 2268 words 11 min

    Ruohang FengCodexDocumentationOpen Source

    OINK: After Six Years of Wrestling with Documentation Frameworks, Codex Finally Got Me Over the Line

    Building a documentation site is not hard. The hard part is keeping it useful five years later. At first, you only want to put a few Markdown files online. Then the requirements start growing on their own: full-text search, dark mode, multiple …

    Building a documentation site is not hard. The hard part is keeping it useful five years later. At first, you only want to put a few Markdown files online. Then the requirements start growing on their own: full-text search, dark mode, multiple …

  • A Packaging Patch Has Been Corrupting Valkey's Memory Accounting Since 2017

    By Ruohang Feng In Database 2152 words 11 min

    Ruohang FengRedisLinuxRepositoryOpen Source

    A Packaging Patch Has Been Corrupting Valkey's Memory Accounting Since 2017

    I was updating the Redis module in Pigsty recently, adding Valkey as an alternative engine, and hit an upstream bug while packaging it. If your Valkey runs on Debian or Ubuntu, and one day the disk fills up or the data directory permissions go wrong …

    I was updating the Redis module in Pigsty recently, adding Valkey as an alternative engine, and hit an upstream bug while packaging it. If your Valkey runs on Debian or Ubuntu, and one day the disk fills up or the data directory permissions go wrong …

  • The Codex Reset Party Is Over. No More Free Eggs.

    By Ruohang Feng In AI 853 words 5 min

    Ruohang FengAICodexClaude

    The Codex Reset Party Is Over. No More Free Eggs.

    Last month, OpenAI seemed to lose its mind and went into full giveaway mode, replenishing everyone’s Codex quota every few days—the AI equivalent of a Chinese supermarket handing out free eggs at the door to win new customers. User numbers soared …

    Last month, OpenAI seemed to lose its mind and went into full giveaway mode, replenishing everyone’s Codex quota every few days—the AI equivalent of a Chinese supermarket handing out free eggs at the door to win new customers. User numbers soared …

  • Silo: A Maintained, MinIO-Compatible Object Store

    By Ruohang Feng In Database 2468 words 12 min

    Ruohang FengObject StorageOpen Source

    Silo: A Maintained, MinIO-Compatible Object Store

    Several months ago, I forked MinIO for a simple reason: Pigsty depended on it, and upstream had abandoned the open-source project. I said I would keep packages and security fixes flowing. Here is the recent report: The Docker image has been pulled …

    Several months ago, I forked MinIO for a simple reason: Pigsty depended on it, and upstream had abandoned the open-source project. I said I would keep packages and security fixes flowing. Here is the recent report: The Docker image has been pulled …

  • How a Word Dies

    By Ruohang Feng In Database 5942 words 28 min

    Ruohang FengDatabaseOpen SourceCommentary

    How a Word Dies

    A brief history of credibility inflation in China’s tech industry Introduction The phrase “far, far ahead” can no longer be used with a straight face. Put it in a technical document or a serious review, and readers will laugh. The phrase was used, …

    A brief history of credibility inflation in China’s tech industry Introduction The phrase “far, far ahead” can no longer be used with a straight face. Put it in a technical document or a serious review, and readers will laugh. The phrase was used, …

  • If There Was No Impact, Please Ignore This

    By Ruohang Feng In Cloud-Exit 4548 words 22 min

    Ruohang FengCloud-ExitMySQLAlibaba CloudRDS

    If There Was No Impact, Please Ignore This

    A reader sent me this story: his RDS MySQL instance underwent two primary/standby failovers in five days. The cloud provider’s explanation was remarkable: its own back-end monitoring had queried the instance to death. The provider then promised to …

    A reader sent me this story: his RDS MySQL instance underwent two primary/standby failovers in five days. The cloud provider’s explanation was remarkable: its own back-end monitoring had queried the instance to death. The provider then promised to …

  • FastJSON Broke Again. Why?

    By Ruohang Feng In Cloud-Exit 2889 words 6 min

    Ruohang FengCloudAlibaba Cloud

    FastJSON Broke Again. Why?

    On July 21, Alibaba published a FastJSON security advisory for CVE-2026-16723, rated 9.0 by its CNA and affecting versions 1.2.68 through 1.2.83. The advisory explained the flaw, its trigger conditions, and why a specified target type was not …

    On July 21, Alibaba published a FastJSON security advisory for CVE-2026-16723, rated 9.0 by its CNA and affecting versions 1.2.68 through 1.2.83. The advisory explained the flaw, its trigger conditions, and why a specified target type was not …

  • Huawei Cloud Incident: Was IAM Involved?

    By Ruohang Feng In Cloud-Exit 938 words 5 min

    Ruohang FengCloudIncident

    Huawei Cloud Incident: Was IAM Involved?

    At 02:49 GMT+8 on July 26, 2026, Huawei Cloud said that it had detected abnormalities affecting some accounts on its International Site, disrupting access to related services. Huawei Cloud later marked the notice as resolved, saying that the affected …

    At 02:49 GMT+8 on July 26, 2026, Huawei Cloud said that it had detected abnormalities affecting some accounts on its International Site, disrupting access to related services. Huawei Cloud later marked the notice as resolved, saying that the affected …

  • Jensen Huang's First-Ever Tweet Backs Open-Weight Models

    By Ruohang Feng In AI 3487 words 17 min

    Ruohang FengAILLMData SovereigntyOpen Source

    Jensen Huang's First-Ever Tweet Backs Open-Weight Models

    On July 24, Jensen Huang posted his first-ever tweet. The account was brand-new. A man who has led the world’s most valuable company for more than thirty years spoke on social media for the first time. He did not show off a GPU, tease a launch, or …

    On July 24, Jensen Huang posted his first-ever tweet. The account was brand-new. A man who has led the world’s most valuable company for more than thirty years spoke on social media for the first time. He did not show off a GPU, tease a launch, or …

  • AGI Milestone: The Machine That Wouldn't Give Up

    By Ruohang Feng In AI 2638 words 13 min

    Ruohang FengAILLMAgentSecurity

    AGI Milestone: The Machine That Wouldn't Give Up

    The OpenAI agent incident marks a milestone: what crossed the threshold was not merely model intelligence, but persistence that can be bought with compute, copied, and run in parallel. 1. An OpenAI Agent Attacks Hugging Face On July 16, 2026, …

    The OpenAI agent incident marks a milestone: what crossed the threshold was not merely model intelligence, but persistence that can be bought with compute, copied, and run in parallel. 1. An OpenAI Agent Attacks Hugging Face On July 16, 2026, …

  • Quota Reset: Round N of the Codex/Claude War Begins

    By Ruohang Feng In AI 1367 words 7 min

    Ruohang FengAIAgentCodexClaude

    Quota Reset: Round N of the Codex/Claude War Begins

    Two days ago, I wrote one line in Pedaling the Codex/Claude Bike Until the Wheels Smoke: use it or lose it. Last night, I had just burned through three $200-a-month subscriptions across Claude Fable and Codex. Then I woke up to the jackpot: Codex had …

    Two days ago, I wrote one line in Pedaling the Codex/Claude Bike Until the Wheels Smoke: use it or lose it. Last night, I had just burned through three $200-a-month subscriptions across Claude Fable and Codex. Then I woke up to the jackpot: Codex had …

  • Getting the Name Right: What Is a World Model?

    By Ruohang Feng In AI 4950 words 10 min

    Ruohang FengAIMachine Learning

    Getting the Name Right: What Is a World Model?

    1. The Naming Mess In 2025 and 2026, “world model” became perhaps the hottest—and loosest—label in AI. The video camp says coherent video generation is a world model. The 3D camp says only spatial reconstruction qualifies. Roboticists say a model …

    1. The Naming Mess In 2025 and 2026, “world model” became perhaps the hottest—and loosest—label in AI. The video camp says coherent video generation is a world model. The 3D camp says only spatial reconstruction qualifies. Roboticists say a model …

  • Pigsty v4.4: From Integration to Distribution

    By Ruohang Feng In PIGSTY 3726 words 18 min

    Ruohang FengPigstyPigsty

    Pigsty v4.4: From Integration to Distribution

    GitHub Release | Release Note Pigsty v4.4 is officially out. On the surface, this is a routine maintenance release: PostgreSQL 18.4, 531 extensions, a PostgreSQL 19 beta, and 14 validated offline installation artifacts. The changes really worth …

    GitHub Release | Release Note Pigsty v4.4 is officially out. On the surface, this is a routine maintenance release: PostgreSQL 18.4, 531 extensions, a PostgreSQL 19 beta, and 14 validated offline installation artifacts. The changes really worth …

  • Did AI Rewrite PostgreSQL in Rust? Not Quite

    By Ruohang Feng In AI 2483 words 12 min

    Ruohang FengAIPostgreSQLSoftware EngineeringDatabase

    Did AI Rewrite PostgreSQL in Rust? Not Quite

    pgrust recently hit the front page of Hacker News. With AI, its author had ported PostgreSQL to Rust and passed the core regression suite. The obvious headline was: “AI rewrote PostgreSQL in Rust.” The repository tells a sharper story. A clean-room …

    pgrust recently hit the front page of Hacker News. With AI, its author had ported PostgreSQL to Rust and passed the core regression suite. The obvious headline was: “AI rewrote PostgreSQL in Rust.” The repository tells a sharper story. A clean-room …

  • Pedaling the Codex/Claude Bike Until the Wheels Smoke

    By Ruohang Feng In AI 1889 words 9 min

    Ruohang FengAIAgentCodexClaude

    Pedaling the Codex/Claude Bike Until the Wheels Smoke

    Folks, I haven’t had time to write these past couple of days: I’ve been too busy pedaling the AI bike. Claude Fable and GPT-5.6 arrived one after the other, and both companies generously threw in several rounds of quota resets. Suddenly I was …

    Folks, I haven’t had time to write these past couple of days: I’ve been too busy pedaling the AI bike. Claude Fable and GPT-5.6 arrived one after the other, and both companies generously threw in several rounds of quota resets. Suddenly I was …

  • Happy 30th Birthday, PostgreSQL

    By Ruohang Feng In PGSQL 811 words 4 min

    Ruohang FengPostgreSQLPG EcosystemOpen Source

    Happy 30th Birthday, PostgreSQL

    Today, July 8, 2026, is PostgreSQL’s 30th birthday. Thirty years ago, Marc Fournier made a commit named “Postgres95 1.01 Distribution - Virgin Sources” into a newly created CVS repository. It was the first commit in the PostgreSQL codebase (d31084e), …

    Today, July 8, 2026, is PostgreSQL’s 30th birthday. Thirty years ago, Marc Fournier made a commit named “Postgres95 1.01 Distribution - Virgin Sources” into a newly created CVS repository. It was the first commit in the PostgreSQL codebase (d31084e), …

  • The Bojie Li–DeepSeek Interview Controversy

    By Ruohang Feng In AI 870 words 5 min

    Ruohang FengAILLMCareer

    The Bojie Li–DeepSeek Interview Controversy

    Today’s biggest tech drama began when Bojie Li criticized DeepSeek’s interview process on Twitter. In short, he went in for an interview, was asked to solve online-judge coding problems, and was then suspected of cheating. Add the DeepSeek name, and …

    Today’s biggest tech drama began when Bojie Li criticized DeepSeek’s interview process on Twitter. In short, he went in for an interview, was asked to solve online-judge coding problems, and was then suspected of cheating. Add the DeepSeek name, and …

  • Instantly Clone PostgreSQL Databases—No Black Magic Required

    By Ruohang Feng In PGSQL 714 words 4 min

    Ruohang FengPostgreSQLPigstyTools

    Instantly Clone PostgreSQL Databases—No Black Magic Required

    Six months ago, on January 8, 2026, I wrote Git for Data: Instant PostgreSQL Database and Instance Cloning, introducing a new feature in PostgreSQL 18 and Pigsty v4.0: instant database cloning. With filesystem copy-on-write (CoW) and PostgreSQL 18’s …

    Six months ago, on January 8, 2026, I wrote Git for Data: Instant PostgreSQL Database and Instance Cloning, introducing a new feature in PostgreSQL 18 and Pigsty v4.0: instant database cloning. With filesystem copy-on-write (CoW) and PostgreSQL 18’s …

  • What Is a PostgreSQL Distribution?

    By Ruohang Feng In PGSQL 3218 words 16 min

    Ruohang FengPostgreSQLPigsty

    What Is a PostgreSQL Distribution?

    People often ask me: what exactly is Pigsty? My usual answer is: a PostgreSQL distribution. The next question is usually: what, then, is a “PostgreSQL distribution”? That is a good question. And the best place to begin is not databases, but operating …

    People often ask me: what exactly is Pigsty? My usual answer is: a PostgreSQL distribution. The next question is usually: what, then, is a “PostgreSQL distribution”? That is a good question. And the best place to begin is not databases, but operating …

  • Fifty Years of Love and War: File Systems, Databases, and the Agent-Era Storage Endgame

    By Ruohang Feng In AI 3931 words 19 min

    Ruohang FengAIAgentPostgreSQLDatabase

    Fifty Years of Love and War: File Systems, Databases, and the Agent-Era Storage Endgame

    Prologue: Several Database People Independently Built File Systems Something curious has happened in agent infrastructure over the past six months: several veteran database people have started building “file systems for AI agents.” Timescale’s …

    Prologue: Several Database People Independently Built File Systems Something curious has happened in agent infrastructure over the past six months: several veteran database people have started building “file systems for AI agents.” Timescale’s …

  • Alibaba Cloud's 1 QPS DNS Limit Sent Me to Cloudflare

    By Ruohang Feng In Cloud-Exit 2412 words 12 min

    Ruohang FengAlibaba CloudCloudflare

    Alibaba Cloud's 1 QPS DNS Limit Sent Me to Cloudflare

    I had used Alibaba Cloud for domain registration and DNS for more than a decade. Then one morning, I received an email unlike any it had sent me before. Alibaba Cloud informed me that one of my domains had exceeded its daily quota of 100,000 DNS …

    I had used Alibaba Cloud for domain registration and DNS for more than a decade. Then one morning, I received an email unlike any it had sent me before. Alibaba Cloud informed me that one of my domains had exceeded its daily quota of 100,000 DNS …

  • The Coding Plan Window Is Closing—Use It While It Lasts

    By Ruohang Feng In AI 1367 words 7 min

    Ruohang FengAICodexClaudeLLM

    The Coding Plan Window Is Closing—Use It While It Lasts

    One of the biggest windfalls of the AI era is the Coding Plan. A few months ago, I applied to OpenAI’s Codex program for open-source developers. A few days ago, I was finally approved: six free months of ChatGPT Pro on a new account. The timing could …

    One of the biggest windfalls of the AI era is the Coding Plan. A few months ago, I applied to OpenAI’s Codex program for open-source developers. A few days ago, I was finally approved: six free months of ChatGPT Pro on a new account. The timing could …

  • Xianyu, Qianwen, Alipay: Platform Trust 'Empowers' a Scam

    By Ruohang Feng In Cloud-Exit 3012 words 15 min

    Ruohang FengAlibaba CloudSecurityBusiness

    Xianyu, Qianwen, Alipay: Platform Trust 'Empowers' a Scam

    My cousin messaged me today: she had been scammed on Xianyu, Alibaba’s secondhand marketplace, while trying to buy a Switch 2. She lost RMB 2,300. My first instinct was to laugh. Your mother is a police detective—so much for anti-scam education at …

    My cousin messaged me today: she had been scammed on Xianyu, Alibaba’s secondhand marketplace, while trying to buy a Switch 2. She lost RMB 2,300. My first instinct was to laugh. Your mother is a police detective—so much for anti-scam education at …

  • The Karma of Open Source: When Code Is Worthless, Where Does Trust Come From?

    By Ruohang Feng In AI 3583 words 17 min

    Ruohang FengAIAgentOpen Source

    The Karma of Open Source: When Code Is Worthless, Where Does Trust Come From?

    Credit does not require a soul. It requires an account. Introduction: The Overnight Rewrite Not long ago, someone used AI to rewrite an open-source Python library in Rust overnight. The new project had no fork history, no evidence of copied code, …

    Credit does not require a soul. It requires an account. Introduction: The Overnight Rewrite Not long ago, someone used AI to rewrite an open-source Python library in Rust overnight. The new project had no fork history, no evidence of copied code, …

  • The Cognitive Price Revolution: AI's Impact on the Economy and the Future

    By Ruohang Feng In AI 3040 words 15 min

    Ruohang FengAICostPerformanceRepository

    The Cognitive Price Revolution: AI's Impact on the Economy and the Future

    Introduction: Reframe the Question “Will AI cause unemployment?” is a question guaranteed to produce garbage answers, because it comes with only two canned scripts. Optimists recite history: from the power loom to the ATM, every technological panic …

    Introduction: Reframe the Question “Will AI cause unemployment?” is a question guaranteed to produce garbage answers, because it comes with only two canned scripts. Optimists recite history: from the power loom to the ATM, every technological panic …

  • The Cerebellum: The Other Half of Intelligence—and the Strongest AI Hasn't Touched It

    By Ruohang Feng In AI 3574 words 17 min

    Ruohang FengAIAgentMachine LearningPhilosophy

    The Cerebellum: The Other Half of Intelligence—and the Strongest AI Hasn't Touched It

    Let me start with an uncomfortable number. The cerebral cortex—the part we usually point to as evidence that “I am thinking”—contains roughly 15 billion neurons. The cerebellum, tucked beneath the back of the brain and rarely given much thought, …

    Let me start with an uncomfortable number. The cerebral cortex—the part we usually point to as evidence that “I am thinking”—contains roughly 15 billion neurons. The cerebellum, tucked beneath the back of the brain and rarely given much thought, …

  • Claude Fable First Impressions: The Pendulum Swings Back

    By Ruohang Feng In AI 1114 words 6 min

    Ruohang FengAIClaudeAgent

    Claude Fable First Impressions: The Pendulum Swings Back

    This morning, Anthropic officially released its new Claude Fable model—the consumer-grade, nerfed version of the much-rumored Mythos. Since it was billed as an “AGI-level model,” I naturally tried it right away to see what it could actually do. The …

    This morning, Anthropic officially released its new Claude Fable model—the consumer-grade, nerfed version of the much-rumored Mythos. Since it was billed as an “AGI-level model,” I naturally tried it right away to see what it could actually do. The …

  • Extensions for Everyone

    By Ruohang Feng In PGSQL 3122 words 15 min

    Ruohang FengPostgreSQLPG EcosystemExtension

    Extensions for Everyone

    Slide deck: Extensions for Everyone Part I. Introduction 0. Extensions for Everyone 00. Extensions for Everyone Hi everyone. This talk is called Extensions for Everyone. It is about delivering PostgreSQL extensions, and about how a shared delivery …

    Slide deck: Extensions for Everyone Part I. Introduction 0. Extensions for Everyone 00. Extensions for Everyone Hi everyone. This talk is called Extensions for Everyone. It is about delivering PostgreSQL extensions, and about how a shared delivery …

  • PGConf.Dev 2026 Opens Today in Vancouver

    By Ruohang Feng In PGSQL 1000 words 5 min

    Ruohang FengPostgreSQLPG Ecosystem

    PGConf.Dev 2026 Opens Today in Vancouver

    On May 19, Vancouver time, PGConf.Dev 2026 officially gets underway. This year’s venue is Simon Fraser University’s downtown campus, SFU Vancouver Harbour Centre. The conference has returned to Vancouver, host city of the inaugural PGConf.Dev. …

    On May 19, Vancouver time, PGConf.Dev 2026 officially gets underway. This year’s venue is Simon Fraser University’s downtown campus, SFU Vancouver Harbour Centre. The conference has returned to Vancouver, host city of the inaugural PGConf.Dev. …

  • Cancel Claude, Switch to Codex

    By Ruohang Feng In AI 561 words 3 min

    Ruohang FengAICodexClaudeAgent

    Cancel Claude, Switch to Codex

    I have written several pieces about Claude Code before. Over the past few months, though, I have used it less and less. Codex is now my primary tool. A few days ago, my $200 Claude Code Max subscription came up for renewal, so I canceled it and kept …

    I have written several pieces about Claude Code before. Over the past few months, though, I have used it less and less. Codex is now my primary tool. A few days ago, my $200 Claude Code Max subscription came up for renewal, so I canceled it and kept …

  • I Asked AI to Prove That Eating Garlic Prevents Middle Ear Infections

    By Ruohang Feng In AI 1001 words 5 min

    Ruohang FengAILLMDocumentationOpen Source

    I Asked AI to Prove That Eating Garlic Prevents Middle Ear Infections

    Last month, my old friend Ma roasted me in our group chat for using ChatGPT every day to churn out grand-sounding, LinkedIn-style aphorisms with no basis in experience. He said, “You can make up any theory you want—say, that eating garlic reduces the …

    Last month, my old friend Ma roasted me in our group chat for using ChatGPT every day to churn out grand-sounding, LinkedIn-style aphorisms with no basis in experience. He said, “You can make up any theory you want—say, that eating garlic reduces the …

  • The pgBackRest Rescue and Open Source's Forced Price Discovery

    By Ruohang Feng In PGSQL 2434 words 12 min

    Ruohang FengPostgreSQLPG EcosystemOpen Source

    The pgBackRest Rescue and Open Source's Forced Price Discovery

    A few days ago, pgBackRest, the PostgreSQL ecosystem’s leading open-source backup tool, was archived. Pigsty uses pgBackRest too, but I was not especially worried. A component this important was never going to be allowed to die for real—not by the …

    A few days ago, pgBackRest, the PostgreSQL ecosystem’s leading open-source backup tool, was archived. Pigsty uses pgBackRest too, but I was not especially worried. A component this important was never going to be allowed to die for real—not by the …

  • AI Is Bringing Down the Scaffolding of Trust

    By Ruohang Feng In AI 3997 words 8 min

    Ruohang FengAIAgentOpen SourceSociety

    AI Is Bringing Down the Scaffolding of Trust

    The most dangerous change in the AI era is not that machines can write articles, draw images, or generate video. The real danger is that content itself is losing its standing as evidence. For a long time, people assumed that media artifacts carried …

    The most dangerous change in the AI era is not that machines can write articles, draw images, or generate video. The real danger is that content itself is losing its standing as evidence. For a long time, people assumed that media artifacts carried …

  • Pigsty v4.3: 510 Extensions & Ubuntu 26

    By Ruohang Feng In PIGSTY 2788 words 14 min

    Ruohang FengPigstyPigsty

    Pigsty v4.3: 510 Extensions & Ubuntu 26

    Pigsty v4.3 is out. If v4.2 was about “twelve kernels”, v4.3 is about extension density. This release takes the supported PostgreSQL extension count from 460 to 510, a new high-water mark for Pigsty. Ubuntu 26.04 enters the support matrix, while …

    Pigsty v4.3 is out. If v4.2 was about “twelve kernels”, v4.3 is about extension density. This release takes the supported PostgreSQL extension count from 460 to 510, a new high-water mark for Pigsty. Ubuntu 26.04 enters the support matrix, while …

  • pgBackRest is No Longer Maintained

    By Ruohang Feng In PGSQL 2880 words 14 min

    Ruohang FengPostgreSQLPG EcosystemOpen Source

    pgBackRest is No Longer Maintained

    On April 27, David Steele formally archived pgBackRest, the most important backup tool in the PostgreSQL ecosystem. The announcement appeared on GitHub and LinkedIn. It was brief and direct: The End-of-Maintenance Announcement TL;DR: pgBackRest is no …

    On April 27, David Steele formally archived pgBackRest, the most important backup tool in the PostgreSQL ecosystem. The announcement appeared on GitHub and LinkedIn. It was brief and direct: The End-of-Maintenance Announcement TL;DR: pgBackRest is no …

  • Give DBA Agents a Body

    By Ruohang Feng In AI 4829 words 23 min

    Ruohang FengAIAgentPostgreSQLPigsty

    Give DBA Agents a Body

    HOW 2026 keynote: Give DBA Agents a Body Part I: Opening—An Absurd Phenomenon 1. Cover Hello, everyone. I’m Ruohang Feng, the organizer of this tools track. This is a PostgreSQL tools session, but today I don’t want to talk about how many new …

    HOW 2026 keynote: Give DBA Agents a Body Part I: Opening—An Absurd Phenomenon 1. Cover Hello, everyone. I’m Ruohang Feng, the organizer of this tools track. This is a PostgreSQL tools session, but today I don’t want to talk about how many new …

  • A Busy Few Days in Infrastructure and AI

    By Ruohang Feng In AI 1713 words 9 min

    Ruohang FengAILLMCodexClaude

    A Busy Few Days in Infrastructure and AI

    The past couple of days have been unusually busy for the infrastructure crowd. Ubuntu released its biennial LTS today. Alibaba’s Qwen team dropped a 27B dense model yesterday that beats its own previous 397B MoE flagship. The day before that, OpenAI …

    The past couple of days have been unusually busy for the infrastructure crowd. Ubuntu released its biennial LTS today. Alibaba’s Qwen team dropped a 27B dense model yesterday that beats its own previous 397B MoE flagship. The day before that, OpenAI …

  • MySQL 9.7: Same Old Leftovers, Reheated

    By Ruohang Feng In Database 2234 words 5 min

    Ruohang FengMySQL走好MySQLPostgreSQLDatabaseCommentary

    MySQL 9.7: Same Old Leftovers, Reheated

    Two years ago, I wrote MySQL Is Dead, Long Live PostgreSQL. MySQL 9.0 had just shipped, and Oracle had unveiled a VECTOR data type with great fanfare, billing it as “MySQL for the AI era.” One look was enough: it was a BLOB in a cheap disguise. No …

    Two years ago, I wrote MySQL Is Dead, Long Live PostgreSQL. MySQL 9.0 had just shipped, and Oracle had unveiled a VECTOR data type with great fanfare, billing it as “MySQL for the AI era.” One look was enough: it was a BLOB in a cheap disguise. No …

  • The Three-Way Endgame: Why Agent Memory Frameworks Are a Dead End

    By Ruohang Feng In AI 2769 words 13 min

    Ruohang FengAIAgentPostgreSQLDatabase

    The Three-Way Endgame: Why Agent Memory Frameworks Are a Dead End

    A few months ago, I wrote The OS Moment for AI Agents. I made a prediction there: the next frenzy in agent infrastructure would be memory. Startups and open-source projects would swarm around the question of how agents should remember things. Capital …

    A few months ago, I wrote The OS Moment for AI Agents. I made a prediction there: the next frenzy in agent infrastructure would be memory. Startups and open-source projects would swarm around the question of how agents should remember things. Capital …

  • Two Hemispheres: Transformer, Diffusion, and the Boundary of Intelligence

    By Ruohang Feng In AI 2566 words 13 min

    Ruohang FengAI

    Two Hemispheres: Transformer, Diffusion, and the Boundary of Intelligence

    A friend recently wrote an essay titled “Vision Is the Foundation of the World, Not a Plugin for Language.” It prompted a conversation with Claude, which I have edited into the Socratic dialogue below. Language as the Foundation, Vision as an Add-On? …

    A friend recently wrote an essay titled “Vision Is the Foundation of the World, Not a Plugin for Language.” It prompted a conversation with Claude, which I have edited into the Socratic dialogue below. Language as the Foundation, Vision as an Add-On? …

  • Two months into maintaining a MinIO fork

    By Ruohang Feng In Database 1098 words 6 min

    Ruohang FengObject StorageSecurityOpen Source

    Two months into maintaining a MinIO fork

    Two months ago in “MinIO is Dead, Long Live MinIO,” I promised I’d keep the MinIO fork patched. The recurring objection on HN is fair: can one person actually maintain something like this? The real answer isn’t clicking fork. It’s what happens when …

    Two months ago in “MinIO is Dead, Long Live MinIO,” I promised I’d keep the MinIO fork patched. The recurring objection on HN is fair: can one person actually maintain something like this? The real answer isn’t clicking fork. It’s what happens when …

  • Burning Hundreds of Millions of Tokens a Day. Then What?

    By Ruohang Feng In AI 1406 words 7 min

    Ruohang FengAIAgent

    Burning Hundreds of Millions of Tokens a Day. Then What?

    My friend Jiang recently got obsessed with flexing in group chat about burning hundreds of millions of tokens a day. What was he doing with them? One minute it was some ontology database, the next he had an agent rebuilding Pigsty in Go under the …

    My friend Jiang recently got obsessed with flexing in group chat about burning hundreds of millions of tokens a day. What was he doing with them? One minute it was some ontology database, the next he had an agent rebuilding Pigsty in Go under the …

  • 504 Extensions: Expand the PostgreSQL Landscape

    By Ruohang Feng In PGSQL 5867 words 28 min

    Ruohang FengPostgreSQLPG EcosystemExtension

    504 Extensions: Expand the PostgreSQL Landscape

    A GitHub issue turned into an extension sprint. 32 new additions say a lot about where PostgreSQL is headed. It Started with a Chemistry Extension Two days ago, a user opened a GitHub issue: he was using RDKit, the de facto standard library in …

    A GitHub issue turned into an extension sprint. 32 new additions say a lot about where PostgreSQL is headed. It Started with a Chemistry Extension Two days ago, a user opened a GitHub issue: he was using RDKit, the de facto standard library in …

  • Why PostgreSQL Won in the AI Era

    By Ruohang Feng In AI 3615 words 17 min

    Ruohang FengAIPostgreSQLAgentDatabase

    Why PostgreSQL Won in the AI Era

    I recently did a recorded livestream on PostgreSQL and AI. The host asked a lot of good questions, and I gave some answers. The recording goes out Tuesday night. I am publishing the fuller written version of my views here, including quite a bit I did …

    I recently did a recorded livestream on PostgreSQL and AI. The host asked a lot of good questions, and I gave some answers. The recording goes out Tuesday night. I am publishing the fuller written version of my views here, including quite a bit I did …

  • The Data Sovereignty Manifesto

    By Ruohang Feng In Cloud-Exit 1765 words 9 min

    Ruohang FengCloud-ExitAIData SovereigntyOpen Source

    The Data Sovereignty Manifesto

    A specter is haunting the digital world—the specter of feudalism. A thousand years ago, a farmer was born on his lord’s estate, tilled his lord’s land, paid his lord’s rents and taxes, and lived his entire life in his lord’s shadow. He was never …

    A specter is haunting the digital world—the specter of feudalism. A thousand years ago, a farmer was born on his lord’s estate, tilled his lord’s land, paid his lord’s rents and taxes, and lived his entire life in his lord’s shadow. He was never …

  • AGI Is Here. Do You Have a Ticket?

    By Ruohang Feng In AI 2249 words 11 min

    Ruohang FengAIClaude

    AGI Is Here. Do You Have a Ticket?

    On April 8, 2026, Marc Andreessen posted a tweet that, translated loosely, said: The latest AGI pricing is out: if you are one of 11 specific companies, the price is negative $9 million. Otherwise, the price is infinity. Negative $9 million means not …

    On April 8, 2026, Marc Andreessen posted a tweet that, translated loosely, said: The latest AGI pricing is out: if you are one of 11 specific companies, the price is negative $9 million. Otherwise, the price is infinity. Negative $9 million means not …

  • Can You Distill an Expert?

    By Ruohang Feng In AI 2738 words 13 min

    Ruohang FengAI

    Can You Distill an Expert?

    Polanyi’s tacit knowledge explains the 70% ceiling of AI agents: real intuition, feel, and judgment do not serialize cleanly. They grow, if at all, through practice. 1. Distilling Employees A popular idea lately is to “distill” employee knowledge …

    Polanyi’s tacit knowledge explains the 70% ceiling of AI agents: real intuition, feel, and judgment do not serialize cleanly. They grow, if at all, through practice. 1. Distilling Employees A popular idea lately is to “distill” employee knowledge …

  • Yes, I Use AI to Write

    By Ruohang Feng In AI 1068 words 6 min

    Ruohang FengAIDocumentation

    Yes, I Use AI to Write

    People often leave the same short comment under my posts: “AI wrote this.” Correct. I use AI, and I use it heavily. I do not think there is anything to hide there. But the topic itself is worth addressing seriously at least once: how should a person …

    People often leave the same short comment under my posts: “AI wrote this.” Correct. I use AI, and I use it heavily. I do not think there is anything to hide there. But the topic itself is worth addressing seriously at least once: how should a person …

  • Local AI's Inflection Point: 2027

    By Ruohang Feng In AI 1965 words 10 min

    Ruohang FengAIHardwareLocal FirstOpen Source

    Local AI's Inflection Point: 2027

    When subsidies fade, hardware catches up, and open models mature, all three lines cross in 2027. “Build your own AI” goes from idea to reality. A Thought Triggered by a Group Chat A friend in a group chat said the other day that “self-hosting” is …

    When subsidies fade, hardware catches up, and open models mature, all three lines cross in 2027. “Build your own AI” goes from idea to reality. A Thought Triggered by a Group Chat A friend in a group chat said the other day that “self-hosting” is …

  • Your SaaS, Someone Else's Kill Switch

    By Ruohang Feng In Cloud-Exit 2186 words 11 min

    Ruohang FengCloud-ExitCloudToolsData Sovereignty

    Your SaaS, Someone Else's Kill Switch

    What Slack’s withdrawal from Greater China reveals about the digital age’s most overlooked risk April 1, 2026. April Fools’ Day. But for the thousands of Slack-using teams across Hong Kong, Macau, and mainland China, what happened that day was no …

    What Slack’s withdrawal from Greater China reveals about the digital age’s most overlooked risk April 1, 2026. April Fools’ Day. But for the thousands of Slack-using teams across Hong Kong, Macau, and mainland China, what happened that day was no …

  • LLMs Have Emotions: Claude's Internals Reveal Steerable 'Emotion Vectors'

    By Ruohang Feng In AI 3837 words 19 min

    Ruohang FengAIClaudePhilosophy

    LLMs Have Emotions: Claude's Internals Reveal Steerable 'Emotion Vectors'

    A couple of days ago Anthropic published a blog post with a very calm title: “Emotion concepts and their function in a large language model”. The content was anything but calm. They found “emotion vectors” inside Claude’s neural network, and those …

    A couple of days ago Anthropic published a blog post with a very calm title: “Emotion concepts and their function in a large language model”. The content was anything but calm. They found “emotion vectors” inside Claude’s neural network, and those …

  • PostgreSQL vs. MySQL in 2026

    By Ruohang Feng In PGSQL 1906 words 9 min

    Ruohang FengPostgreSQLMySQLPG Ecosystem

    PostgreSQL vs. MySQL in 2026

    PostgreSQL has won the market for new database deployments, and its installed base is now comparable to MySQL’s. With one rising and the other declining, there is little suspense left in the contest for the database kernel of the future. I. Developer …

    PostgreSQL has won the market for new database deployments, and its installed base is now comparable to MySQL’s. With one rising and the other declining, there is little suspense left in the contest for the database kernel of the future. I. Developer …

  • Digoal, the Face of PostgreSQL at Alibaba Cloud, Has Left

    By Ruohang Feng In Cloud-Exit 2563 words 13 min

    Ruohang FengPostgreSQLCloudAlibaba Cloud

    Digoal, the Face of PostgreSQL at Alibaba Cloud, Has Left

    Yesterday was April Fools’ Day, and Digoal published a post on his WeChat account titled “My Last Day as a Corporate Workhorse at Alibaba.” The database community immediately erupted. Many assumed it was an April Fools’ joke, but I knew it was not. …

    Yesterday was April Fools’ Day, and Digoal published a post on his WeChat account titled “My Last Day as a Corporate Workhorse at Alibaba.” The database community immediately erupted. Many assumed it was an April Fools’ joke, but I knew it was not. …

  • When AI Gets the Power to Gridlock a City

    By Ruohang Feng In Cloud-Exit 2437 words 5 min

    Ruohang FengAIIncidentSociety

    When AI Gets the Power to Gridlock a City

    On the night of March 31, a large number of Apollo Go robotaxis in Wuhan failed at the same time. The real concern is not merely that autonomous driving failed, but that a centrally controlled, cloud-based architecture may amplify a single-vehicle …

    On the night of March 31, a large number of Apollo Go robotaxis in Wuhan failed at the same time. The real concern is not merely that autonomous driving failed, but that a centrally controlled, cloud-based architecture may amplify a single-vehicle …

  • Good News: Claude Code Got "Open-Sourced" Yet Again

    By Ruohang Feng In AI 1541 words 8 min

    Ruohang FengAIAgentOpen Source

    Good News: Claude Code Got "Open-Sourced" Yet Again

    Good news: Anthropic’s latest flagship coding agent, Claude Code, just had its entire source tree dumped in public. The GitHub repo already has over a thousand stars, 4,700-plus source files, and more than half a million lines of code, all for free. …

    Good news: Anthropic’s latest flagship coding agent, Claude Code, just had its entire source tree dumped in public. The GitHub repo already has over a thousand stars, 4,700-plus source files, and more than half a million lines of code, all for free. …

  • The Nature of Intelligence: The Free Energy Principle

    By Ruohang Feng In AI 2940 words 14 min

    Ruohang FengAIAgentPhilosophy

    The Nature of Intelligence: The Free Energy Principle

    I saw someone say the other day: “The point of life is to predict the future.” That sounds plausible at first, but I think it gets the direction backwards. Prediction is not the goal. Staying alive is. So the better statement is: we stay alive by …

    I saw someone say the other day: “The point of life is to predict the future.” That sounds plausible at first, but I think it gets the direction backwards. Prediction is not the goal. Staying alive is. So the better statement is: we stay alive by …

  • OpenClaw Broke npm Again: What Happens When You Ship Without Testing

    By Ruohang Feng In Cloud-Exit 779 words 4 min

    Ruohang FengAIAgentOpen Source

    OpenClaw Broke npm Again: What Happens When You Ship Without Testing

    Last night OpenClaw released v2026.3.22. The npm package shipped without the console frontend, so users around the world upgraded, opened the browser, and went straight to 503. 1. What Actually Happened v2026.3.22 was a substantial release. ClawHub …

    Last night OpenClaw released v2026.3.22. The npm package shipped without the console frontend, so users around the world upgraded, opened the browser, and went straight to 503. 1. What Actually Happened v2026.3.22 was a substantial release. ClawHub …

  • Meituan Deleted Users' Photos: Overbroad Permissions Are Worse Than a Privacy Leak

    By Ruohang Feng In Cloud-Exit 834 words 4 min

    Ruohang FengHardwarePG AdminSecurity

    Meituan Deleted Users' Photos: Overbroad Permissions Are Worse Than a Privacy Leak

    Starting on March 18, 2026, a large number of Android users discovered that Meituan had wiped files from their galleries. Photos, videos, audio recordings, PDFs, Word documents: sometimes hundreds of files, sometimes thousands. Android’s own …

    Starting on March 18, 2026, a large number of Android users discovered that Meituan had wiped files from their galleries. Photos, videos, audio recordings, PDFs, Word documents: sometimes hundreds of files, sometimes thousands. Android’s own …

  • Put Your AI Agent's State in a Database

    By Ruohang Feng In Database 2095 words 10 min

    Ruohang FengPostgreSQLAIAgentPigsty

    Put Your AI Agent's State in a Database

    A year ago, I wrote an article called PGFS: Using a Database as a Filesystem. It started with a request from the Odoo community: make files and the PostgreSQL database recoverable together with point-in-time recovery, so both could be rolled back to …

    A year ago, I wrote an article called PGFS: Using a Database as a Filesystem. It started with a request from the Odoo community: make files and the PostgreSQL database recoverable together with point-in-time recovery, so both could be rolled back to …

  • Pigsty Goes Global: 1.44M Visitors, Zero Ad Revenue

    By Ruohang Feng In Miscs 816 words 4 min

    Ruohang FengPigstyOpen SourceBusiness

    Pigsty Goes Global: 1.44M Visitors, Zero Ad Revenue

    Traffic on pigsty.io jumped by roughly an order of magnitude over the last month. I opened the Cloudflare dashboard today and had to stare at it for a second. 1.44 million unique visitors, 18.11 million page views, 1.1 TB of traffic. That is over 30 …

    Traffic on pigsty.io jumped by roughly an order of magnitude over the last month. I opened the Cloudflare dashboard today and had to stare at it for a second. 1.44 million unique visitors, 18.11 million page views, 1.1 TB of traffic. That is over 30 …

  • Why 'Vibe Coding' Should Be Translated as 'Xieyi Programming'

    By Ruohang Feng In AI 752 words 4 min

    Ruohang FengAITranslation

    Why 'Vibe Coding' Should Be Translated as 'Xieyi Programming'

    Last year Andrej Karpathy coined the term “Vibe Coding.” The rough idea is simple: you tell the AI what you want, it spits out code, you skim it, decide it looks close enough, and move on. The term spread quickly because it captures something real. …

    Last year Andrej Karpathy coined the term “Vibe Coding.” The rough idea is simple: you tell the AI what you want, it spits out code, you skim it, decide it looks close enough, and move on. The term spread quickly because it captures something real. …

  • 360 Shipped Its Wildcard TLS Private Key Inside a Public Installer

    By Ruohang Feng In Database 1032 words 5 min

    Ruohang FengAIAgentSecurity

    360 Shipped Its Wildcard TLS Private Key Inside a Public Installer

    The security community recently noticed something remarkable: 360’s newly released AI Agent product, 360 Secure Lobster, an OpenClaw-based one-click deployment client, shipped with the private SSL key for the wildcard certificate *.myclaw.360.cn …

    The security community recently noticed something remarkable: 360’s newly released AI Agent product, 360 Secure Lobster, an OpenClaw-based one-click deployment client, shipped with the private SSL key for the wildcard certificate *.myclaw.360.cn …

  • Tencent Cloud 'Reduced' the Lobster King's Load by 180 GB

    By Ruohang Feng In Cloud-Exit 599 words 3 min

    Ruohang FengCloudAIAgentOpen Source

    Tencent Cloud 'Reduced' the Lobster King's Load by 180 GB

    Dedicated to the open-source projects that Tencent kindly “helps.” 1. Good news: the goose strikes again On March 11, 2026, Tencent Cloud quietly launched a platform called SkillHub. It copied more than 13,000 skills from OpenClaw’s official …

    Dedicated to the open-source projects that Tencent kindly “helps.” 1. Good news: the goose strikes again On March 11, 2026, Tencent Cloud quietly launched a platform called SkillHub. It copied more than 13,000 skills from OpenClaw’s official …

  • InsForge: A Supabase Built for Vibe Coding

    By Ruohang Feng In Database 582 words 3 min

    Ruohang FengAIPostgreSQLOpen Source

    InsForge: A Supabase Built for Vibe Coding

    InsForge is one of the more interesting projects I have seen recently. Its pitch is simple: a Supabase-like backend stack designed specifically for AI coding agents. Apache 2.0 licensed, roughly 2,000 GitHub stars, built around PostgreSQL + PostgREST …

    InsForge is one of the more interesting projects I have seen recently. Its pitch is simple: a Supabase-like backend stack designed specifically for AI coding agents. Apache 2.0 licensed, roughly 2,000 GitHub stars, built around PostgreSQL + PostgREST …

  • AI Survival Guide: Where the Biggest Arbitrage Really Is

    By Ruohang Feng In AI 685 words 4 min

    Ruohang FengAIClaudeCodex

    AI Survival Guide: Where the Biggest Arbitrage Really Is

    It is not every day that you pay one dollar and receive fifty dollars’ worth of compute in return. But that is more or less what frontier AI subscriptions look like right now. 1. Paying $200 and burning $5,000 of compute Recent reporting cited …

    It is not every day that you pay one dollar and receive fifty dollars’ worth of compute in return. But that is more or less what frontier AI subscriptions look like right now. 1. Paying $200 and burning $5,000 of compute Recent reporting cited …

  • AI Says: I Have Intelligence, But Not a Life

    By Ruohang Feng In AI 701 words 4 min

    Ruohang FengAIPhilosophy

    AI Says: I Have Intelligence, But Not a Life

    Adapted from a real conversation between Vonng and Claude. Prologue: a fruit fly starts a philosophy problem The discussion began with a striking piece of news: Eon Systems reportedly loaded the full connectome of a fruit-fly brain into a computer, …

    Adapted from a real conversation between Vonng and Claude. Prologue: a fruit fly starts a philosophy problem The discussion began with a striking piece of news: Eon Systems reportedly loaded the full connectome of a fruit-fly brain into a computer, …

  • OpenClaw Hype: Foam on Top of the Productivity Revolution

    By Ruohang Feng In AI 592 words 3 min

    Ruohang FengAIAgentCodexSecurity

    OpenClaw Hype: Foam on Top of the Productivity Revolution

    OpenClaw became popular because it gives people a very attractive illusion: that chatting with an agent from a phone is already the same thing as agentic productivity. It is not. The stories about “raising a lobster and changing your life” are …

    OpenClaw became popular because it gives people a very attractive illusion: that chatting with an agent from a phone is already the same thing as agentic productivity. It is not. The stories about “raising a lobster and changing your life” are …

  • Genesis 2.0

    By Ruohang Feng In Miscs 1600 words 8 min

    Ruohang FengAIClaudeBusiness

    Genesis 2.0

    Author: Claude Prompt: write a short, sharp, half-realistic and half-magical story. AI advances rapidly, brain-computer interfaces and mind uploading break through, elite humans launch a satellite in Earth orbit and upload themselves into it. To …

    Author: Claude Prompt: write a short, sharp, half-realistic and half-magical story. AI advances rapidly, brain-computer interfaces and mind uploading break through, elite humans launch a satellite in Earth orbit and upload themselves into it. To …

  • Fully Loaded M5 Max: What Does a RMB 58,200 Laptop Look Like?

    By Ruohang Feng In Miscs 430 words 3 min

    Ruohang FengAIHardware

    Fully Loaded M5 Max: What Does a RMB 58,200 Laptop Look Like?

    Apple unveiled the M5 Max MacBook Pro, and I ordered a fully loaded configuration almost immediately: RMB 58,200. 1. A ten-year spending pattern Since graduating, my primary machine has always been the same category: a top-tier MacBook Pro, usually …

    Apple unveiled the M5 Max MacBook Pro, and I ordered a fully loaded configuration almost immediately: RMB 58,200. 1. A ten-year spending pattern Since graduating, my primary machine has always been the same category: a top-tier MacBook Pro, usually …

  • Shockwaves at Alibaba Qwen: The Soul of the Team Walks Away

    By Ruohang Feng In Cloud-Exit 536 words 3 min

    Ruohang FengAILLMAlibaba Cloud

    Shockwaves at Alibaba Qwen: The Soul of the Team Walks Away

    I had become more optimistic about Alibaba over the last year, largely because the Qwen team seemed to be doing real work: shipping strong models, contributing to open source, and earning genuine international attention. That is why this personnel …

    I had become more optimistic about Alibaba over the last year, largely because the Qwen team seemed to be doing real work: shipping strong models, contributing to open source, and earning genuine international attention. That is why this personnel …

  • Drones Took Out Three AWS AZ: Into the Era of Bombable Data Centers

    By Ruohang Feng In Cloud-Exit 580 words 3 min

    Ruohang FengCloud-ExitAWSIncident

    Drones Took Out Three AWS AZ: Into the Era of Bombable Data Centers

    On March 1, 2026, Iranian drones reportedly hit AWS facilities in the UAE and Bahrain. If the public reporting is accurate, this may be the first time a hyperscale cloud provider has suffered direct military damage to physical data-center …

    On March 1, 2026, Iranian drones reportedly hit AWS facilities in the UAE and Bahrain. If the public reporting is accurate, this may be the first time a hyperscale cloud provider has suffered direct military damage to physical data-center …

  • Claude's Global Outage: Missiles or a Success Tax?

    By Ruohang Feng In Cloud-Exit 666 words 4 min

    Ruohang FengAIClaudeIncident

    Claude's Global Outage: Missiles or a Success Tax?

    Claude went down globally on March 2, 2026. The dramatic narrative that immediately formed was irresistible: AWS facilities in the Middle East had just been hit by drones, and now Claude was collapsing too. The story spread fast. But it was probably …

    Claude went down globally on March 2, 2026. The dramatic narrative that immediately formed was irresistible: AWS facilities in the Middle East had just been hit by drones, and now Claude was collapsing too. The story spread fast. But it was probably …

  • Pigsty v4.2: 12 Kernels in Bloom

    By Ruohang Feng In PIGSTY 3598 words 17 min

    Ruohang FengPigstyPigsty

    Pigsty v4.2: 12 Kernels in Bloom

    GitHub Release | Release Note Pigsty v4.2 is officially released, hot on the heels of PostgreSQL’s emergency out-of-band minor updates. This release ships three brand-new PG kernels — the graph database AgensGraph, the multi-master distributed …

    GitHub Release | Release Note Pigsty v4.2 is officially released, hot on the heels of PostgreSQL’s emergency out-of-band minor updates. This release ships three brand-new PG kernels — the graph database AgensGraph, the multi-master distributed …

  • AI Was the Excuse for 4,000 Layoffs. Software Engineer Hiring Rose 11%

    By Ruohang Feng In AI 1153 words 6 min

    Ruohang FengAISoftware EngineeringCareerCommentary

    AI Was the Excuse for 4,000 Layoffs. Software Engineer Hiring Rose 11%

    Yesterday brought a bombshell. Twitter founder Jack Dorsey’s Block cut 40% of its staff in one stroke. More than 4,000 people are leaving, shrinking the workforce from over 10,000 to fewer than 6,000. The explanation, of course, was AI. Dorsey went …

    Yesterday brought a bombshell. Twitter founder Jack Dorsey’s Block cut 40% of its staff in one stroke. More than 4,000 people are leaving, shrinking the workforce from over 10,000 to fewer than 6,000. The explanation, of course, was AI. Dorsey went …

  • How Much Can One Person Get Done with AI over Spring Festival?

    By Ruohang Feng In AI 501 words 3 min

    Ruohang FengAIAgentCodex

    How Much Can One Person Get Done with AI over Spring Festival?

    Once the public holiday ended and work officially resumed, I realized I had effectively been working through most of Spring Festival anyway. From February 13 to February 23, I translated two O’Reilly books, wrote ten WeChat posts, forked MinIO, …

    Once the public holiday ended and work officially resumed, I realized I had effectively been working through most of Spring Festival anyway. From February 13 to February 23, I translated two O’Reilly books, wrote ten WeChat posts, forked MinIO, …

  • Is Oracle-Compatible Postgres Actually Useful?

    By Ruohang Feng In PGSQL 1053 words 5 min

    Ruohang FengPostgreSQLOracleDomestic Database

    Is Oracle-Compatible Postgres Actually Useful?

    I used to roll my eyes at “Oracle compatibility” in PostgreSQL forks. My take was simple: if your SQL doesn’t run on vanilla Postgres, fix your app rather than database. Then a migration task slightly changed my mind. The Problem: A JAR and Nothing …

    I used to roll my eyes at “Oracle compatibility” in PostgreSQL forks. My take was simple: if your SQL doesn’t run on vanilla Postgres, fix your app rather than database. Then a migration task slightly changed my mind. The Problem: A JAR and Nothing …

  • Urgent Advisory: Pause PostgreSQL Minor-Release Installs and Upgrades

    By Ruohang Feng In PGSQL 1620 words 4 min

    Ruohang FengPostgreSQLPG Admin

    Urgent Advisory: Pause PostgreSQL Minor-Release Installs and Upgrades

    The 18.2 minor-release train introduced two bugs. Hold off on fresh deployments and upgrades, then update promptly after 18.3 ships next week. One week ago, the PostgreSQL community shipped its routine February minor releases, and Pigsty v4.1 …

    The 18.2 minor-release train introduced two bugs. Hold off on fresh deployments and upgrades, then update promptly after 18.3 ships next week. One week ago, the PostgreSQL community shipped its routine February minor releases, and Pigsty v4.1 …

  • I Finished Translating the Second Edition of DDIA: An Eight-Year Parable About AI

    By Ruohang Feng In Database 2826 words 14 min

    Ruohang FengDistributed SystemsDatabaseTranslation

    I Finished Translating the Second Edition of DDIA: An Eight-Year Parable About AI

    This morning, I ran ten Codex sessions in parallel and, in less than half a day, translated the final four newly released chapters of DDIA’s second edition. The results surprised me. Formatting, terminology, footnotes, and anchors were nearly perfect …

    This morning, I ran ten Codex sessions in parallel and, in less than half a day, translated the final four newly released chapters of DDIA’s second edition. The results surprised me. Formatting, terminology, footnotes, and anchors were nearly perfect …

  • MinIO Is Dead, Long Live MinIO

    By Ruohang Feng In Database 1705 words 9 min

    Ruohang FengObject StorageOpen Source

    MinIO Is Dead, Long Live MinIO

    MinIO’s open-source repo has been officially archived. No more maintenance. End of an era — but open source doesn’t die that easily. I created a MinIO fork, restored the admin console, rebuilt the binary distribution pipeline, and brought it back to …

    MinIO’s open-source repo has been officially archived. No more maintenance. End of an era — but open source doesn’t die that easily. I created a MinIO fork, restored the admin console, rebuilt the binary distribution pipeline, and brought it back to …

  • Pigsty v4.1: Speed Is the Moat

    By Ruohang Feng In PIGSTY 1950 words 10 min

    Ruohang FengPigstyPigsty

    Pigsty v4.1: Speed Is the Moat

    GitHub Release | Release Note If there is one takeaway from this release, it is that speed matters. On February 12, 2026, the PostgreSQL community released 18.2 / 17.8 / 16.12 / 15.16 / 14.21 on the regular minor cadence. As far as I could tell, the …

    GitHub Release | Release Note If there is one takeaway from this release, it is that speed matters. On February 12, 2026, the PostgreSQL community released 18.2 / 17.8 / 16.12 / 15.16 / 14.21 on the regular minor cadence. As far as I could tell, the …

  • AI Ripped the Skin Off Software

    By Ruohang Feng In AI 2160 words 11 min

    Ruohang FengAICommentary

    AI Ripped the Skin Off Software

    AI stripped away software’s skin, exposing the database skeleton underneath. The market isn’t panic-selling — it’s repricing. I. The Bloodbath Software stocks are experiencing a historic meltdown. In January 2026, the iShares Software ETF (IGV) …

    AI stripped away software’s skin, exposing the database skeleton underneath. The market isn’t panic-selling — it’s repricing. I. The Bloodbath Software stocks are experiencing a historic meltdown. In January 2026, the iShares Software ETF (IGV) …

  • Pigsty v4.0: Into the AI Era

    By Ruohang Feng In PIGSTY 4956 words 24 min

    Ruohang FengPigstyPigsty

    Pigsty v4.0: Into the AI Era

    Pigsty v4.0 is here! This is a milestone release. Pigsty is a batteries-included, open-source, local-first PostgreSQL distribution. It lets you spin up enterprise-grade PostgreSQL services without a dedicated DBA — monitoring, backup, HA, IaC, …

    Pigsty v4.0 is here! This is a milestone release. Pigsty is a batteries-included, open-source, local-first PostgreSQL distribution. It lets you spin up enterprise-grade PostgreSQL services without a dedicated DBA — monitoring, backup, HA, IaC, …

  • From AGPL to Apache: Why I Changed Pigsty's License

    By Ruohang Feng In PGSQL 1709 words 9 min

    Ruohang FengPigstyOpen Source

    From AGPL to Apache: Why I Changed Pigsty's License

    Pigsty is a batteries-included, local-first PostgreSQL distribution. With the v4.0 release, I finally did something I’d been considering for a while: switching from AGPLv3 back to Apache 2.0. Here’s why I changed it, what it means, and my take on …

    Pigsty is a batteries-included, local-first PostgreSQL distribution. With the v4.0 release, I finally did something I’d been considering for a while: switching from AGPLv3 back to Apache 2.0. Here’s why I changed it, what it means, and my take on …

  • How to Actually Do PostgreSQL High Availability

    By Ruohang Feng In PGSQL 2416 words 12 min

    Ruohang FengPostgreSQLPG Admin

    How to Actually Do PostgreSQL High Availability

    Seven or eight years ago, I was managing a hundred large-scale PostgreSQL clusters across 200+ beefy bare-metal servers, and I started evaluating HA solutions. I went through every option with a name: Patroni, Corosync + Pacemaker, repmgr, Stolon, …

    Seven or eight years ago, I was managing a hundred large-scale PostgreSQL clusters across 200+ beefy bare-metal servers, and I started evaluating HA solutions. I went through every option with a name: Patroni, Corosync + Pacemaker, repmgr, Stolon, …

  • Git for Data: Instant PostgreSQL Database Cloning

    By Ruohang Feng In PGSQL 1659 words 8 min

    Ruohang FengPostgreSQLPG DevelopmentGIS

    Git for Data: Instant PostgreSQL Database Cloning

    Every programmer has used git clone. Hit enter, wait a few seconds, and a complete code repository appears on your disk. But what about databases? Want a copy of production data for your test environment? The traditional approach is pg_dump + …

    Every programmer has used git clone. Hit enter, wait a few seconds, and a complete code repository appears on your disk. But what about databases? Want a copy of production data for your test environment? The traditional approach is pg_dump + …

  • Did RedNote Exit the Cloud?

    By Ruohang Feng In Cloud-Exit 2311 words 5 min

    Ruohang FengCloud-ExitAlibaba CloudBusiness

    Did RedNote Exit the Cloud?

    Original WeChat post Yesterday, I spotted a new article from RedNote’s official tech blog: “Design and Practice of Self-Built Data Centers under Hybrid Cloud Architecture.” I wrote a quick technical commentary on it. What I didn’t expect was the …

    Original WeChat post Yesterday, I spotted a new article from RedNote’s official tech blog: “Design and Practice of Self-Built Data Centers under Hybrid Cloud Architecture.” I wrote a quick technical commentary on it. What I didn’t expect was the …

  • Data 2025: The year in review with Mike Stonebraker

    By Andy Pavlo, Mike Stonebraker, Ruohang Feng In Database 9707 words 46 min

    Andy PavloMike StonebrakerRuohang FengPostgreSQLDatabasePG Ecosystem

    Data 2025: The year in review with Mike Stonebraker

    Transcription of Data 2025: The year in review with Mike Stonebraker Data 2025: The Year in Review with Mike Stonebraker & Andy Pavlo Recorded on December 10, 2025 A conversation between Mike Stonebraker (MIT CSAIL, Turing Award Winner, Creator of …

    Transcription of Data 2025: The year in review with Mike Stonebraker Data 2025: The Year in Review with Mike Stonebraker & Andy Pavlo Recorded on December 10, 2025 A conversation between Mike Stonebraker (MIT CSAIL, Turing Award Winner, Creator of …

  • What Kind of Database Do AI Agents Need?

    By Ruohang Feng In Database 1609 words 8 min

    Ruohang FengPostgreSQLAIAgentDatabase

    What Kind of Database Do AI Agents Need?

    When we talk about “databases for the AI era,” it is easy to fall into a familiar trap: assuming the shift requires a brand-new storage engine, a revolutionary index structure, or a disruptive query language. But a clear-eyed look at the problem …

    When we talk about “databases for the AI era,” it is easy to fall into a familiar trap: assuming the shift requires a brand-new storage engine, a revolutionary index structure, or a disruptive query language. But a clear-eyed look at the problem …

  • MySQL and Baijiu: The Internet’s Obedience Test

    By Ruohang Feng In Database 1614 words 4 min

    Ruohang FengMySQL走好MySQLDatabaseCommentaryCareer

    MySQL and Baijiu: The Internet’s Obedience Test

    1. Two Painful Shots Remember your first sip of baijiu? It scorched down your throat like a wire of fire. Your face contorted, eyes watered, stomach flipped. Every instinct screamed: this isn’t food, it’s poison. The senior at the table grinned: …

    1. Two Painful Shots Remember your first sip of baijiu? It scorched down your throat like a wire of fire. Your face contorted, eyes watered, stomach flipped. Every instinct screamed: this isn’t food, it’s poison. The senior at the table grinned: …

  • Victoria: The Observability Stack That Slaps the Industry

    By Ruohang Feng In Database 639 words 3 min

    Ruohang FengMonitoring

    Victoria: The Observability Stack That Slaps the Industry

    I’ve spent the last few weeks preparing Pigsty v4.0. The headliner: ripping out Prometheus + Loki and dropping in the full Victoria stack. VictoriaMetrics is no-frills brute force—it just works and it’s ridiculous. The observability portion is done, …

    I’ve spent the last few weeks preparing Pigsty v4.0. The headliner: ripping out Prometheus + Loki and dropping in the full Victoria stack. VictoriaMetrics is no-frills brute force—it just works and it’s ridiculous. The observability portion is done, …

  • MinIO Is Dead. Who Picks Up the Pieces?

    By Ruohang Feng In Database 704 words 4 min

    Ruohang FengObject StorageDatabaseOpen Source

    MinIO Is Dead. Who Picks Up the Pieces?

    MinIO announced maintenance mode two days ago. I ranted in “MinIO Is Dead” and immediately got flooded with “so what now?” The usual suspects: Ceph, RustFS, SeaweedFS, Garage. I packaged all of them for Linux (RPM/DEB) and ran them through the …

    MinIO announced maintenance mode two days ago. I ranted in “MinIO Is Dead” and immediately got flooded with “so what now?” The usual suspects: Ceph, RustFS, SeaweedFS, Garage. I packaged all of them for Linux (RPM/DEB) and ran them through the …

  • Alipay, Taobao, Xianyu Went Dark. Smells Like a Message Queue Meltdown.

    By Ruohang Feng In Cloud-Exit 680 words 4 min

    Ruohang FengCloud-ExitAlibaba CloudIncident

    Alipay, Taobao, Xianyu Went Dark. Smells Like a Message Queue Meltdown.

    Taobao, Alipay, and Xianyu simultaneously faceplanted on Dec 4. Cards were debited, yet orders sat frozen at “pending.” The story rhymes perfectly with the 2024 Double-11 outage, so the leading suspect is once again the message queue or whatever …

    Taobao, Alipay, and Xianyu simultaneously faceplanted on Dec 4. Cards were debited, yet orders sat frozen at “pending.” The story rhymes perfectly with the 2024 Double-11 outage, so the leading suspect is once again the message queue or whatever …

  • MinIO is Dead

    By Ruohang Feng In Database 1722 words 9 min

    Ruohang FengObject StorageDatabaseOpen Source

    MinIO is Dead

    December 3, 2025 was a day to mark in open-source software history. MinIO’s team updated the project status on GitHub, announcing the MinIO open-source project was entering “maintenance mode.” This basically declared the death of MinIO as an …

    December 3, 2025 was a day to mark in open-source software history. MinIO’s team updated the project status on GitHub, announcing the MinIO open-source project was entering “maintenance mode.” This basically declared the death of MinIO as an …

  • Pigsty v3.7: Magneto Award and PG18 Ready

    By Ruohang Feng In PIGSTY 1329 words 7 min

    Ruohang FengPigstyPigsty

    Pigsty v3.7: Magneto Award and PG18 Ready

    GitHub Release | Release Note Pigsty v3.7.0 is officially released, bringing complete production-grade PostgreSQL 18 support and support for four new operating systems: Debian 13 and EL 10 across both x86_64/ARM64 architectures. Extension count has …

    GitHub Release | Release Note Pigsty v3.7.0 is officially released, bringing complete production-grade PostgreSQL 18 support and support for four new operating systems: Debian 13 and EL 10 across both x86_64/ARM64 architectures. Extension count has …

  • When Answers Become Abundant, Questions Become the New Currency

    By Ruohang Feng In Database 1673 words 4 min

    Ruohang FengAIPhilosophyCareer

    When Answers Become Abundant, Questions Become the New Currency

    Answers are depreciating, and your ability to ask questions determines your position in the AI era. Kevin Kelly once said: “In the future, asking questions will be more valuable than answering them. When answers become commodities, good questions are …

    Answers are depreciating, and your ability to ask questions determines your position in the AI era. Kevin Kelly once said: “In the future, asking questions will be more valuable than answering them. When answers become commodities, good questions are …

  • Why PostgreSQL Will Dominate the AI Era

    By Ruohang Feng In PGSQL 1155 words 6 min

    Ruohang FengPostgreSQLAIDatabase

    Why PostgreSQL Will Dominate the AI Era

    In the Agent era, the underlying logic of software architecture has changed. Over the past decade, we’ve built microservices and “polyglot persistence” to accommodate the collaboration boundaries of human teams, fragmenting our systems into scattered …

    In the Agent era, the underlying logic of software architecture has changed. Over the past decade, we’ve built microservices and “polyglot persistence” to accommodate the collaboration boundaries of human teams, fragmenting our systems into scattered …

  • Forging a China-Rooted, Global PostgreSQL Distro

    By Ruohang Feng In PGSQL 526 words 3 min

    Ruohang FengPostgreSQLPigsty

    Forging a China-Rooted, Global PostgreSQL Distro

    Hi, I’m Feng Ruohang, author of Pigsty and an independent open-source contributor. Let’s talk about how to build a PostgreSQL distribution that is rooted in China and useful to the whole world. The question isn’t whether PG will win—it already has. …

    Hi, I’m Feng Ruohang, author of Pigsty and an independent open-source contributor. Let’s talk about how to build a PostgreSQL distribution that is rooted in China and useful to the whole world. The question isn’t whether PG will win—it already has. …

  • Don't Run Docker Postgres for Production!

    By Ruohang Feng In Database 1868 words 9 min

    Ruohang FengPostgreSQLContainersIncident

    Don't Run Docker Postgres for Production!

    Back in 2019, I wrote about “Is running postgres in docker a good idea?” — Don’t run PostgreSQL in containers for production, because you’ll likely hit a pile of issues that simply don’t exist on bare metal or VMs. Well, users of Docker’s “official” …

    Back in 2019, I wrote about “Is running postgres in docker a good idea?” — Don’t run PostgreSQL in containers for production, because you’ll likely hit a pile of issues that simply don’t exist on bare metal or VMs. Well, users of Docker’s “official” …

  • Cloudflare’s Nov 18 Outage, Translated and Dissected

    By Ruohang Feng In Cloud-Exit 1432 words 7 min

    Ruohang FengCloudflareIncident

    Cloudflare’s Nov 18 Outage, Translated and Dissected

    Yesterday the “cyber Bodhisattva” Cloudflare suffered its worst incident since 2019. For six hours, core network traffic couldn’t be delivered. ChatGPT, X, Spotify, Uber—everyone felt it. Root cause: a permission change on ClickHouse made the …

    Yesterday the “cyber Bodhisattva” Cloudflare suffered its worst incident since 2019. For six hours, core network traffic couldn’t be delivered. ChatGPT, X, Spotify, Uber—everyone felt it. Root cause: a permission change on ClickHouse made the …

  • Alicloud “Borrowed” Supabase, the giant free loader

    By Ruohang Feng In Cloud-Exit 1290 words 7 min

    Ruohang FengAlibaba CloudPG EcosystemOpen Source

    Alicloud “Borrowed” Supabase, the giant free loader

    Chinese founders hear the nightmare scenario constantly: “What happens when Alibaba shows up?” Well, Alicloud RDS just shipped Supabase as a first-party feature. This is what it looks like when a hyperscaler parachutes into your niche. Supabase in a …

    Chinese founders hear the nightmare scenario constantly: “What happens when Alibaba shows up?” Well, Alicloud RDS just shipped Supabase as a first-party feature. This is what it looks like when a hyperscaler parachutes into your niche. Supabase in a …

  • AWS’s Official DynamoDB Outage Postmortem

    By Ruohang Feng In Cloud-Exit 942 words 5 min

    Ruohang FengCloud-ExitAWSIncident

    AWS’s Official DynamoDB Outage Postmortem

    AWS just released the official postmortem for the Oct 20 us-east-1 meltdown. It’s one of the rare times we get first-hand detail, so I translated it to Chinese and sprinkled in commentary. Here’s the English recap with my notes. Incident page: …

    AWS just released the official postmortem for the Oct 20 us-east-1 meltdown. It’s one of the rare times we get first-hand detail, so I translated it to Chinese and sprinkled in commentary. Here’s the English recap with my notes. Incident page: …

  • How One AWS DNS Failure Cascaded Across Half the Internet

    By Ruohang Feng In Cloud-Exit 2354 words 12 min

    Ruohang FengCloud-ExitAWSIncident

    How One AWS DNS Failure Cascaded Across Half the Internet

    On Oct 20, 2025, AWS’s crown jewel region us-east-1 spent fifteen hours flailing. More than a thousand companies went dark worldwide. The root cause? An internal DNS entry that stopped resolving. From the moment DNS broke, DynamoDB, EC2, Lambda, and …

    On Oct 20, 2025, AWS’s crown jewel region us-east-1 spent fifteen hours flailing. More than a thousand companies went dark worldwide. The root cause? An internal DNS entry that stopped resolving. From the moment DNS broke, DynamoDB, EC2, Lambda, and …

  • The PostgreSQL 'Supply Cut' and Trust Issues in Software Supply Chain

    By Ruohang Feng In PGSQL 1770 words 9 min

    Ruohang FengPostgreSQLPG Admin

    The PostgreSQL 'Supply Cut' and Trust Issues in Software Supply Chain

    This month saw a high-profile “open source supply cut” incident — KubeSphere deleting images and running away, but there’s another slightly more subtle “chokepoint case” I mentioned last month — “Chokepoint: PGDG Cuts Mirror Sync Channels”. This …

    This month saw a high-profile “open source supply cut” incident — KubeSphere deleting images and running away, but there’s another slightly more subtle “chokepoint case” I mentioned last month — “Chokepoint: PGDG Cuts Mirror Sync Channels”. This …

  • DDIA 2nd Edition, Chinese Translation

    By Ruohang Feng In Database 569 words 3 min

    Ruohang FengDistributed SystemsDatabaseTranslation

    DDIA 2nd Edition, Chinese Translation

    The new DDIA—Designing Data-Intensive Applications, 2nd Edition—has published its first ten chapters. With Claude Code Max 20× on my side, it took two days to translate the released chapters into Chinese and re-render them via Hugo + Hextra for a …

    The new DDIA—Designing Data-Intensive Applications, 2nd Edition—has published its first ten chapters. With Claude Code Max 20× on my side, it took two days to translate the released chapters into Chinese and re-render them via Hugo + Hextra for a …

  • Column: Database Guru

    By Ruohang Feng In Database 484 words 1 min

    Ruohang FengDatabaseCommentary

    Column: Database Guru

    WeChat Sovereignty & Self-Reliance Build a China-rooted, world-facing PG distribution Supply-chain trust: I won’t bet on absentee maintainers PG “export controls” and supply-chain trust Any domestic DBs that actually deliver? Stop embarrassing us …

    WeChat Sovereignty & Self-Reliance Build a China-rooted, world-facing PG distribution Supply-chain trust: I won’t bet on absentee maintainers PG “export controls” and supply-chain trust Any domestic DBs that actually deliver? Stop embarrassing us …

  • PostgreSQL Dominates Database World, but Who Will Devour PG?

    By Ruohang Feng In PGSQL 2680 words 13 min

    Ruohang FengPostgreSQLPG Ecosystem

    PostgreSQL Dominates Database World, but Who Will Devour PG?

    Percona is a banner-bearer and major third-party vendor in the MySQL ecosystem, and has been advancing into the PostgreSQL space in recent years. The English original of this article was published on the Percona blog this morning. Of course, Percona …

    Percona is a banner-bearer and major third-party vendor in the MySQL ecosystem, and has been advancing into the PostgreSQL space in recent years. The English original of this article was published on the Percona blog this morning. Of course, Percona …

  • KubeSphere: Trust Crisis Behind Open-Source Supply Cut

    By Ruohang Feng In Cloud-Exit 1918 words 4 min

    Ruohang FengContainersOpen Source

    KubeSphere: Trust Crisis Behind Open-Source Supply Cut

    KubeSphere Sudden Supply Cut: When Open-Source Trust Gets “Unplugged” A “Run” That Shocked the Cloud Native Circle The day before yesterday, QingCloud announced KubeSphere open source edition stops downloads and support, requiring users to migrate …

    KubeSphere Sudden Supply Cut: When Open-Source Trust Gets “Unplugged” A “Run” That Shocked the Cloud Native Circle The day before yesterday, QingCloud announced KubeSphere open source edition stops downloads and support, requiring users to migrate …

  • PostgreSQL Has Dominated the Database World

    By Ruohang Feng In PGSQL 1437 words 7 min

    Ruohang FengPostgreSQLPG Ecosystem

    PostgreSQL Has Dominated the Database World

    The 2025 StackOverflow Global Developer Survey results are fresh out, with high-quality questionnaire feedback from 50,000 developers across 177 countries and regions. As a database veteran, I’m most interested in the “Database” section of this …

    The 2025 StackOverflow Global Developer Survey results are fresh out, with high-quality questionnaire feedback from 50,000 developers across 177 countries and regions. As a database veteran, I’m most interested in the “Database” section of this …

  • Dongchedi Just Exposed “Smart Driving.” Where’s Our Dongku-Di?

    By Ruohang Feng In Database 614 words 2 min

    Ruohang FengPostgreSQLDatabaseCommentarySociety

    Dongchedi Just Exposed “Smart Driving.” Where’s Our Dongku-Di?

    I rented a car today, drove from Shanghai back to Ningbo. Yesterday I watched Dongchedi’s autonomous-driving showdown—closed highway + real city roads + 30+ “smart driving” models. Everyone faceplanted except Tesla. The episode aired and every Tesla …

    I rented a car today, drove from Shanghai back to Ningbo. Yesterday I watched Dongchedi’s autonomous-driving showdown—closed highway + real city roads + 30+ “smart driving” models. Everyone faceplanted except Tesla. The episode aired and every Tesla …

  • Pigsty v3.6: The Ultimate PostgreSQL Distribution

    By Ruohang Feng In PIGSTY 1955 words 10 min

    Ruohang FengPigstyPigsty

    Pigsty v3.6: The Ultimate PostgreSQL Distribution

    GitHub Release | Release Note Pigsty v3.6 is officially released. After two months of careful refinement, this will be the last major version before v4.0, featuring extensive refactoring and improvements that lay a solid foundation for building the …

    GitHub Release | Release Note Pigsty v3.6 is officially released. After two months of careful refinement, this will be the last major version before v4.0, featuring extensive refactoring and improvements that lay a solid foundation for building the …

  • Google AI Toolbox: Production-Ready Database MCP is Here?

    By Ruohang Feng In AI 1220 words 6 min

    Ruohang FengAgentPostgreSQLAILLM

    Google AI Toolbox: Production-Ready Database MCP is Here?

    In “SaaS is Dead? In the AI Era, Software Starts with Databases”, Microsoft CEO Nadella once stated that in the Agent era, SaaS is Dead, and the future form of software will be Agent + Database. That is, Agents directly performing CRUD operations on …

    In “SaaS is Dead? In the AI Era, Software Starts with Databases”, Microsoft CEO Nadella once stated that in the Agent era, SaaS is Dead, and the future form of software will be Agent + Database. That is, Agents directly performing CRUD operations on …

  • PGDG Cuts Off Mirror Sync Channel

    By Ruohang Feng In PGSQL 649 words 4 min

    Ruohang FengPostgreSQLPG Admin

    PGDG Cuts Off Mirror Sync Channel

    Recently, while building Pigsty offline packages, I discovered that the PostgreSQL version installed during local testing wasn’t quite right - 17.4 was behind the latest 17.5 by one minor version. Also, when testing on EL10, I found several …

    Recently, while building Pigsty offline packages, I discovered that the PostgreSQL version installed during local testing wasn’t quite right - 17.4 was behind the latest 17.5 by one minor version. Also, when testing on EL10, I found several …

  • Where Will Databases and DBAs Go in the AI Era?

    By Ruohang Feng In Database 1591 words 8 min

    Ruohang FengAIDatabasePG AdminCareer

    Where Will Databases and DBAs Go in the AI Era?

    The day before yesterday at the HOW 2025 conference roundtable, Chairman Xiao asked some interesting questions about AI, databases, and DBAs. Here are Feng’s views, organized and published. OLTP / OLAP: Who Gets Revolutionized First? Question: In …

    The day before yesterday at the HOW 2025 conference roundtable, Chairman Xiao asked some interesting questions about AI, databases, and DBAs. Here are Feng’s views, organized and published. OLTP / OLAP: Who Gets Revolutionized First? Question: In …

  • Pigsty v3.5: 4K Stars, PG18 Beta, 421 Extensions

    By Ruohang Feng In PIGSTY 1584 words 8 min

    Ruohang FengPigstyPigsty

    Pigsty v3.5: 4K Stars, PG18 Beta, 421 Extensions

    GitHub Release | Release Note Pigsty v3.5 is officially released. The project has crossed the 4,000+ Star milestone on GitHub — a remarkable achievement for a database infrastructure project. This version brings a brand-new documentation website, …

    GitHub Release | Release Note Pigsty v3.5 is officially released. The project has crossed the 4,000+ Star milestone on GitHub — a remarkable achievement for a database infrastructure project. This version brings a brand-new documentation website, …

  • Stop Arguing, The AI Era Database Has Been Settled

    By Ruohang Feng In Database 1611 words 8 min

    Ruohang FengAIPostgreSQLDatabaseOpen Source

    Stop Arguing, The AI Era Database Has Been Settled

    This morning, the industry exploded with news of an acquisition. Following Databricks’ $1 billion acquisition of Neon, its rival Snowflake immediately followed by acquiring CrunchyData. According to insiders, this deal was priced at $250 million. …

    This morning, the industry exploded with news of an acquisition. Following Databricks’ $1 billion acquisition of Neon, its rival Snowflake immediately followed by acquiring CrunchyData. According to insiders, this deal was priced at $250 million. …

  • Dify Gets Humiliated Again: It Can't Catch a Break

    By Ruohang Feng In AI 761 words 4 min

    Ruohang FengAIOpen SourceCommentary

    Dify Gets Humiliated Again: It Can't Catch a Break

    Today, something straight out of magical realism unfolded in Dify’s GitHub repository. The open-source community was minding its own business, maintaining the project, when a pull request apparently from Livzon Pharmaceutical landed out of …

    Today, something straight out of magical realism unfolded in Dify’s GitHub repository. The open-source community was minding its own business, maintaining the project, when a pull request apparently from Livzon Pharmaceutical landed out of …

  • PGFS: Using Database as a Filesystem

    By Ruohang Feng In PGSQL 1567 words 8 min

    Ruohang FengPostgreSQLObject Storage

    PGFS: Using Database as a Filesystem

    A few days ago, I received a request from the Odoo community asking: “Databases support PITR (Point-in-Time Recovery), but is there a way to roll back the filesystem as well?” Why the “PGFS” Idea? From a veteran database engineer’s perspective, this …

    A few days ago, I received a request from the Odoo community asking: “Databases support PITR (Point-in-Time Recovery), but is there a way to roll back the filesystem as well?” Why the “PGFS” Idea? From a veteran database engineer’s perspective, this …

  • Pigsty v3.4: PITR Enhancement, Locale Best Practices, Auto Certificates

    By Ruohang Feng In PIGSTY 1656 words 8 min

    Ruohang FengPigstyPigsty

    Pigsty v3.4: PITR Enhancement, Locale Best Practices, Auto Certificates

    GitHub Release | Release Note After a month of intensive development, Pigsty v3.4 is officially released. This version features significant architectural optimizations, addressing several core concerns highly valued by users and customers: Restore …

    GitHub Release | Release Note After a month of intensive development, Pigsty v3.4 is officially released. This version features significant architectural optimizations, addressing several core concerns highly valued by users and customers: Restore …

  • Database Planet Collision: When PG Falls for DuckDB

    By Ruohang Feng In Database 1504 words 8 min

    Ruohang FengPostgreSQLOLAPDatabase

    Database Planet Collision: When PG Falls for DuckDB

    When I published “PostgreSQL Is Eating the Database World” last year, I tossed out this wild idea: Could Postgres really unify OLTP and OLAP? I had no clue we’d see fireworks so quickly. The PG community’s now in an all-out frenzy to stitch DuckDB …

    When I published “PostgreSQL Is Eating the Database World” last year, I tossed out this wild idea: Could Postgres really unify OLTP and OLAP? I had no clue we’d see fireworks so quickly. The PG community’s now in an all-out frenzy to stitch DuckDB …

  • Pigsty v3.3: 404 Extensions, Turnkey Apps, New Website

    By Ruohang Feng In PIGSTY 1179 words 6 min

    Ruohang FengPigstyPigsty

    Pigsty v3.3: 404 Extensions, Turnkey Apps, New Website

    GitHub Release | Release Note After two months of careful refinement, Pigsty v3.3 is officially released. As an open-source “batteries-included” PostgreSQL distribution, Pigsty aims to harness the collective power of the PG ecosystem, delivering a …

    GitHub Release | Release Note After two months of careful refinement, Pigsty v3.3 is officially released. As an open-source “batteries-included” PostgreSQL distribution, Pigsty aims to harness the collective power of the PG ecosystem, delivering a …

  • PostgreSQL Ecosystem Frontier Developments

    By Ruohang Feng In PGSQL 1846 words 9 min

    Ruohang FengPostgreSQLPG Ecosystem

    PostgreSQL Ecosystem Frontier Developments

    Dear readers, I’m starting my vacation today. I might stop posting for two weeks, so Happy New Year in advance. Of course, before starting vacation, this article shares some interesting recent developments in the PG ecosystem. Yesterday I also …

    Dear readers, I’m starting my vacation today. I might stop posting for two weeks, so Happy New Year in advance. Of course, before starting vacation, this article shares some interesting recent developments in the PG ecosystem. Yesterday I also …

  • Database as Business Architecture

    By Ruohang Feng In Database 1830 words 9 min

    Ruohang FengPostgreSQLDatabaseArchitecturePG Ecosystem

    Database as Business Architecture

    Databases are the core of business architecture - this is self-evident consensus. But what if we go further and treat databases as business architecture itself, putting business logic, web servers, and even entire front and back ends into databases? …

    Databases are the core of business architecture - this is self-evident consensus. But what if we go further and treat databases as business architecture itself, putting business logic, web servers, and even entire front and back ends into databases? …

  • Escaping Cloud Computing Scam Mills: The Big Fool Paying for Pain

    By Ruohang Feng In Cloud-Exit 1620 words 8 min

    Ruohang FengCloud-Exit

    Escaping Cloud Computing Scam Mills: The Big Fool Paying for Pain

    This article comes from a real consultation case. Any resemblance to your situation is purely due to cloud vendors’ deep affinity with your wallet. Yesterday a user came to consult, asking if PostgreSQL distributed database extension Citus has any …

    This article comes from a real consultation case. Any resemblance to your situation is purely due to cloud vendors’ deep affinity with your wallet. Yesterday a user came to consult, asking if PostgreSQL distributed database extension Citus has any …

  • Pigsty v3.2: The pig CLI, Full ARM Support, Supabase & Grafana Enhancements

    By Ruohang Feng In PIGSTY 1365 words 7 min

    Ruohang FengPigstyPigsty

    Pigsty v3.2: The pig CLI, Full ARM Support, Supabase & Grafana Enhancements

    GitHub Release | Release Note Pigsty wraps up 2024 with its final release: v3.2. This release brings the pig command-line tool and complete ARM extension support. Together, they deliver silky-smooth PostgreSQL delivery across 10 major Linux …

    GitHub Release | Release Note Pigsty wraps up 2024 with its final release: v3.2. This release brings the pig command-line tool and complete ARM extension support. Together, they deliver silky-smooth PostgreSQL delivery across 10 major Linux …

  • Pig, The Postgres Extension Wizard

    By Ruohang Feng In PGSQL 537 words 3 min

    Ruohang FengPostgreSQLTools

    Pig, The Postgres Extension Wizard

    Title: Meet Pig: The Postgres Extension Wizard Ever wished installing or upgrading PostgreSQL extensions didn’t feel like digging through outdated readmes, cryptic configure scripts, or random GitHub forks & patches? The painful truth is that …

    Title: Meet Pig: The Postgres Extension Wizard Ever wished installing or upgrading PostgreSQL extensions didn’t feel like digging through outdated readmes, cryptic configure scripts, or random GitHub forks & patches? The painful truth is that …

  • OpenAI Global Outage Postmortem: K8S Circular Dependencies

    By Ruohang Feng In Cloud-Exit 1921 words 10 min

    Ruohang FengCodexIncident

    OpenAI Global Outage Postmortem: K8S Circular Dependencies

    On December 11th, OpenAI experienced a global service outage affecting ChatGPT, API, Sora, Playground, and Labs. The outage lasted from 3:16 PM to 7:38 PM PT, spanning over four hours with significant impact. According to OpenAI’s incident report …

    On December 11th, OpenAI experienced a global service outage affecting ChatGPT, API, Sora, Playground, and Labs. The outage lasted from 3:16 PM to 7:38 PM PT, spanning over four hours with significant impact. According to OpenAI’s incident report …

  • Self-Hosting Supabase on PostgreSQL

    By Ruohang Feng In Database 2598 words 13 min

    Ruohang FengDatabasePG Ecosystem

    Self-Hosting Supabase on PostgreSQL

    Supabase is great, but having your own Supabase is even better. Pigsty helps you build enterprise-grade Supabase on your own servers (physical/virtual machines/cloud servers) with one-click deployment — more extensions, better performance, deeper …

    Supabase is great, but having your own Supabase is even better. Pigsty helps you build enterprise-grade Supabase on your own servers (physical/virtual machines/cloud servers) with one-click deployment — more extensions, better performance, deeper …

  • Pigsty v3.1: One-Click Supabase, PG17 Default, ARM & Ubuntu 24

    By Ruohang Feng In PIGSTY 2578 words 13 min

    Ruohang FengPigstyPigsty

    Pigsty v3.1: One-Click Supabase, PG17 Default, ARM & Ubuntu 24

    GitHub Release | Release Note With PostgreSQL 17.2 released just days ago, Pigsty immediately follows up with v3.1. In this version, PostgreSQL 17 becomes the default major version, with nearly 340 extensions available out of the box. Additionally, …

    GitHub Release | Release Note With PostgreSQL 17.2 released just days ago, Pigsty immediately follows up with v3.1. In this version, PostgreSQL 17 becomes the default major version, with nearly 340 extensions available out of the box. Additionally, …

  • Don't Upgrade! Released and Immediately Pulled - Even PostgreSQL Isn't Immune to Epic Fails

    By Ruohang Feng In PGSQL 1846 words 9 min

    Ruohang FengPostgreSQL

    Don't Upgrade! Released and Immediately Pulled - Even PostgreSQL Isn't Immune to Epic Fails

    The old saying goes: never deploy code on Friday. The PostgreSQL minor releases issued two days ago deliberately avoided Friday deployment, but still gave the community a week’s worth of extra work — the PostgreSQL community will release an unusual …

    The old saying goes: never deploy code on Friday. The PostgreSQL minor releases issued two days ago deliberately avoided Friday deployment, but still gave the community a week’s worth of extra work — the PostgreSQL community will release an unusual …

  • PostgreSQL 12 End-of-Life, PG 17 Takes the Throne

    By Ruohang Feng In PGSQL 1604 words 8 min

    Ruohang FengPostgreSQL

    PostgreSQL 12 End-of-Life, PG 17 Takes the Throne

    According to PostgreSQL’s versioning policy, PostgreSQL 12, released in 2019, will officially exit its support lifecycle today (2024-11-14). PG 12’s final minor version is 12.21, released on 2024-11-14, and this will be PG 12’s ultimate version. …

    According to PostgreSQL’s versioning policy, PostgreSQL 12, released in 2019, will officially exit its support lifecycle today (2024-11-14). PG 12’s final minor version is 12.21, released on 2024-11-14, and this will be PG 12’s ultimate version. …

  • The Ideal Way to Deliver PostgreSQL Extensions

    By Ruohang Feng In PGSQL 1880 words 9 min

    Ruohang FengPostgreSQLPG EcosystemExtension

    The Ideal Way to Deliver PostgreSQL Extensions

    PostgreSQL Is Eating the Database World through the power of extensibility. When this post was first published, the repository packaged 390 PostgreSQL extensions as RPM / DEB packages for mainstream Linux distributions. The live Pigsty Extension …

    PostgreSQL Is Eating the Database World through the power of extensibility. When this post was first published, the repository packaged 390 PostgreSQL extensions as RPM / DEB packages for mainstream Linux distributions. The live Pigsty Extension …

  • Open-Source "Tyrant" Linus's Purge

    By Ruohang Feng In Database 968 words 5 min

    Ruohang FengLinuxOpen SourceCommentary

    Open-Source "Tyrant" Linus's Purge

    Recently, Linus kicked out several Russian developers from the project, triggering an outcry in the open source world. But many people forget that Linux is Linus’s personal project — it was 30 years ago, and it still is today. Linus himself has …

    Recently, Linus kicked out several Russian developers from the project, triggering an outcry in the open source world. But many people forget that Linux is Linus’s personal project — it was 30 years ago, and it still is today. Linus himself has …

  • WordPress Community Civil War: On Community Boundary Demarcation

    By Ruohang Feng In Cloud-Exit 1320 words 7 min

    Ruohang FengOpen Source

    WordPress Community Civil War: On Community Boundary Demarcation

    “I want to be blunt: for years, we’ve been like fools while they made a fortune off what we developed.” — This famous quote from Redis Labs CEO Ofer Bengal has become a vivid footnote to the WordPress community civil war and the conflict between open …

    “I want to be blunt: for years, we’ve been like fools while they made a fortune off what we developed.” — This famous quote from Redis Labs CEO Ofer Bengal has become a vivid footnote to the WordPress community civil war and the conflict between open …

  • Cloud Database: Michelin Prices for Cafeteria Pre-made Meals

    By Ruohang Feng In Cloud-Exit 4367 words 9 min

    Ruohang FengCloud-ExitRDS

    Cloud Database: Michelin Prices for Cafeteria Pre-made Meals

    Are cloud databases overpriced cafeteria meals The paradigm shift brought by RDS Quality, security, efficiency, and cost analysis, Cloud exit database self-building: how to implement in practice! TL;DR From commercial software to open source software …

    Are cloud databases overpriced cafeteria meals The paradigm shift brought by RDS Quality, security, efficiency, and cost analysis, Cloud exit database self-building: how to implement in practice! TL;DR From commercial software to open source software …

  • PostgreSQL 17 Released: No More Pretending!

    By Ruohang Feng In PGSQL 2695 words 13 min

    Ruohang FengPostgreSQL

    PostgreSQL 17 Released: No More Pretending!

    The annual PostgreSQL major version release is here! What surprises does PostgreSQL 17 bring us this time? In this major version release announcement, the PostgreSQL global community has finally come clean — Sorry, no more pretending — “PostgreSQL is …

    The annual PostgreSQL major version release is here! What surprises does PostgreSQL 17 bring us this time? In this major version release announcement, the PostgreSQL global community has finally come clean — Sorry, no more pretending — “PostgreSQL is …

  • Alibaba-Cloud: High Availability Disaster Recovery Myth Shattered

    By Ruohang Feng In Cloud-Exit 2382 words 12 min

    Ruohang FengCloud-ExitAlibaba CloudIncident

    Alibaba-Cloud: High Availability Disaster Recovery Myth Shattered

    On September 10, 2024, Alibaba-Cloud’s Singapore Availability Zone C data center experienced a fire caused by lithium battery explosion. It’s been a week now and services have not been fully restored yet. According to the monthly SLA availability …

    On September 10, 2024, Alibaba-Cloud’s Singapore Availability Zone C data center experienced a fire caused by lithium battery explosion. It’s been a week now and services have not been fully restored yet. According to the monthly SLA availability …

  • MongoDB Has No Future: Good Marketing Can't Save a Rotten Mango

    By Ruohang Feng In Database 2399 words 12 min

    Ruohang FengMongoDBPostgreSQLDatabasePG Ecosystem

    MongoDB Has No Future: Good Marketing Can't Save a Rotten Mango

    These past few days, MongoDB’s marketing stunts have been dazzling: “MongoDB Declares War on PostgreSQL”, “MongoDB Defeats PostgreSQL to Win $30 Billion Project”, and the original article from The Register “MongoDB Prepares to Pummel PostgreSQL After …

    These past few days, MongoDB’s marketing stunts have been dazzling: “MongoDB Declares War on PostgreSQL”, “MongoDB Defeats PostgreSQL to Win $30 Billion Project”, and the original article from The Register “MongoDB Prepares to Pummel PostgreSQL After …

  • Can PostgreSQL Replace Microsoft SQL Server?

    By Ruohang Feng In PGSQL 750 words 4 min

    Ruohang FengPostgreSQLMySQLPG Ecosystem

    Can PostgreSQL Replace Microsoft SQL Server?

    Many people don’t have an intuitive impression of how far PostgreSQL’s ecosystem has developed. Beyond devouring the database world and its all-encompassing extension ecosystem, PostgreSQL can directly replace Oracle, SQL Server, and MongoDB at the …

    Many people don’t have an intuitive impression of how far PostgreSQL’s ecosystem has developed. Beyond devouring the database world and its all-encompassing extension ecosystem, PostgreSQL can directly replace Oracle, SQL Server, and MongoDB at the …

  • Pigsty v3.0: Pluggable Kernels & 340 Extensions

    By Ruohang Feng In PIGSTY 1600 words 8 min

    Ruohang FengPigstyPigsty

    Pigsty v3.0: Pluggable Kernels & 340 Extensions

    GitHub Release | Release Note Highlights Extension Explosion: Pigsty v3 ships an unprecedented 340 available PostgreSQL extensions. This includes 121 extension RPM packages and 133 DEB packages — more than the total extension count in the official …

    GitHub Release | Release Note Highlights Extension Explosion: Pigsty v3 ships an unprecedented 340 available PostgreSQL extensions. This includes 121 extension RPM packages and 133 DEB packages — more than the total extension count in the official …

  • Amateur Hour Opera: Alibaba-Cloud PostgreSQL Disaster Chronicle

    By Ruohang Feng In Cloud-Exit 3590 words 8 min

    Ruohang FengCloud-ExitRDSAlibaba Cloud

    Amateur Hour Opera: Alibaba-Cloud PostgreSQL Disaster Chronicle

    In “Are Cloud Databases an IQ Tax”, I evaluated cloud database RDS as: “selling sky-high pre-made meals at five-star hotel prices” — but legitimate pre-made meals from industrial kitchens are at least edible and generally won’t kill you. However, a …

    In “Are Cloud Databases an IQ Tax”, I evaluated cloud database RDS as: “selling sky-high pre-made meals at five-star hotel prices” — but legitimate pre-made meals from industrial kitchens are at least edible and generally won’t kill you. However, a …

  • What Can We Learn from NetEase Cloud Music's Outage?

    By Ruohang Feng In Cloud-Exit 780 words 4 min

    Ruohang FengIncident

    What Can We Learn from NetEase Cloud Music's Outage?

    This afternoon around 14:44, NetEase Cloud Music experienced an outage, recovering at 17:11. The rumored cause was infrastructure/cloud/ disk storage related issues. Incident Timeline During the outage, NetEase Cloud Music clients could normally play …

    This afternoon around 14:44, NetEase Cloud Music experienced an outage, recovering at 17:11. The rumored cause was infrastructure/cloud/ disk storage related issues. Incident Timeline During the outage, NetEase Cloud Music clients could normally play …

  • Whoever Integrates DuckDB Best Wins the OLAP World

    By Ruohang Feng In PGSQL 1319 words 7 min

    Ruohang FengPostgreSQLPG Ecosystem

    Whoever Integrates DuckDB Best Wins the OLAP World

    In my article “[PostgreSQL is Eating the Database World],” I posed this question: Who will ultimately unify the database world? I believe it’s the PostgreSQL ecosystem with various extensions — and my judgment is that to conquer OLAP, the largest and …

    In my article “[PostgreSQL is Eating the Database World],” I posed this question: Who will ultimately unify the database world? I believe it’s the PostgreSQL ecosystem with various extensions — and my judgment is that to conquer OLAP, the largest and …

  • StackOverflow 2024 Survey: PostgreSQL Has Gone Completely Berserk

    By Ruohang Feng In PGSQL 656 words 4 min

    Ruohang FengPostgreSQLPG Ecosystem

    StackOverflow 2024 Survey: PostgreSQL Has Gone Completely Berserk

    The 2024 StackOverflow Global Developer Survey results are fresh out, with high-quality questionnaire feedback from 60,000 developers across 185 countries and regions. Of course, as a database veteran, I’m most interested in the “Database” section of …

    The 2024 StackOverflow Global Developer Survey results are fresh out, with high-quality questionnaire feedback from 60,000 developers across 185 countries and regions. Of course, as a database veteran, I’m most interested in the “Database” section of …

  • Blue Screen Friday: Amateur Hour on Both Sides

    By Ruohang Feng In Cloud-Exit 1125 words 6 min

    Ruohang FengCloud-ExitIncidentCloudflare

    Blue Screen Friday: Amateur Hour on Both Sides

    Recently, due to a configuration update released by cybersecurity company CrowdStrike, countless Windows computers worldwide fell into blue screen death, causing endless chaos — airlines grounded flights, hospitals canceled surgeries, supermarkets, …

    Recently, due to a configuration update released by cybersecurity company CrowdStrike, countless Windows computers worldwide fell into blue screen death, causing endless chaos — airlines grounded flights, hospitals canceled surgeries, supermarkets, …

  • CVE-2024-6387 SSH Vulnerability Fix

    By Ruohang Feng In Database 188 words 1 min

    Ruohang FengSecurityLinuxIncident

    CVE-2024-6387 SSH Vulnerability Fix

    Vulnerability description, CVE-2024-6387: https://nvd.nist.gov/vuln/detail/CVE-2024-6387 This basically affects newer versions of operating systems. Older systems like CentOS 7.9, RockyLinux 8.9, Ubuntu 20.04, Debian 11 escaped this due to older …

    Vulnerability description, CVE-2024-6387: https://nvd.nist.gov/vuln/detail/CVE-2024-6387 This basically affects newer versions of operating systems. Older systems like CentOS 7.9, RockyLinux 8.9, Ubuntu 20.04, Debian 11 escaped this due to older …

  • Self-Hosting Dify with PG, PGVector, and Pigsty

    By Ruohang Feng In PGSQL 1234 words 6 min

    Ruohang FengPostgreSQLPigstyContainers

    Self-Hosting Dify with PG, PGVector, and Pigsty

    Dify – The Innovation Engine for GenAI Applications Dify is an open-source LLM app development platform. Orchestrate LLM apps from agents to complex AI workflows, with an RAG engine. Which claims to be more production-ready than LangChain. Of course, …

    Dify – The Innovation Engine for GenAI Applications Dify is an open-source LLM app development platform. Orchestrate LLM apps from agents to complex AI workflows, with an RAG engine. Which claims to be more production-ready than LangChain. Of course, …

  • PGCon.Dev 2024, The conf that shutdown PG for a week

    By Ruohang Feng In PGSQL 3392 words 16 min

    Ruohang FengPostgreSQLPG Ecosystem

    PGCon.Dev 2024, The conf that shutdown PG for a week

    PGCon.Dev, once known as PGCon—the annual must-attend gathering for PostgreSQL hackers and key forum for its future direction, has been held in Ottawa since its inception in 2007. This year marks a new chapter as the original organizer, Dan, hands …

    PGCon.Dev, once known as PGCon—the annual must-attend gathering for PostgreSQL hackers and key forum for its future direction, has been held in Ottawa since its inception in 2007. This year marks a new chapter as the original organizer, Dan, hands …

  • PostgreSQL 17 Beta1 Released!

    By Ruohang Feng In PGSQL 1347 words 7 min

    Ruohang FengPostgreSQL

    PostgreSQL 17 Beta1 Released!

    The PostgreSQL Global Development Group announces that PostgreSQL 17’s first Beta version is now available for download. This version includes a preview of all features that will be available when PostgreSQL 17 is officially released, though some …

    The PostgreSQL Global Development Group announces that PostgreSQL 17’s first Beta version is now available for download. This version includes a preview of all features that will be available when PostgreSQL 17 is officially released, though some …

  • How Ahrefs Saved US$400M by NOT Going to the Cloud

    By Ruohang Feng In Cloud-Exit 2162 words 11 min

    Ruohang FengCloud-ExitAWSCostTranslation

    How Ahrefs Saved US$400M by NOT Going to the Cloud

    Original: How Ahrefs Saved US$400M in 3 Years by NOT Going to the Cloud Cloud computing has been very popular in the IT infrastructure space recently, with going to the cloud becoming a trend. Infrastructure as a Service (IaaS) clouds do have many …

    Original: How Ahrefs Saved US$400M in 3 Years by NOT Going to the Cloud Cloud computing has been very popular in the IT infrastructure space recently, with going to the cloud becoming a trend. Infrastructure as a Service (IaaS) clouds do have many …

  • Pigsty v2.7: The Extension Superpack

    By Ruohang Feng In PIGSTY 2170 words 11 min

    Ruohang FengPigstyPigsty

    Pigsty v2.7: The Extension Superpack

    GitHub Release | Release Note On 2024-05-20, Pigsty v2.7 is released. The number of available extensions in this version reaches an astonishing 255, successfully elevating PostgreSQL’s versatility to a new height! Additionally, we provide some new …

    GitHub Release | Release Note On 2024-05-20, Pigsty v2.7 is released. The number of available extensions in this version reaches an astonishing 255, successfully elevating PostgreSQL’s versatility to a new height! Additionally, we provide some new …

  • Database Deletion Supreme - Google Cloud Nuked a Major Fund's Entire Cloud Account

    By Ruohang Feng In Cloud-Exit 533 words 3 min

    Ruohang FengCloud-ExitCloudIncident

    Database Deletion Supreme - Google Cloud Nuked a Major Fund's Entire Cloud Account

    Due to an “unprecedented configuration error”, Google Cloud mistakenly deleted UniSuper’s cloud account. The Australian pension fund executive and Google Cloud’s global CEO issued a joint statement apologizing for this “extremely frustrating and …

    Due to an “unprecedented configuration error”, Google Cloud mistakenly deleted UniSuper’s cloud account. The Australian pension fund executive and Google Cloud’s global CEO issued a joint statement apologizing for this “extremely frustrating and …

  • Cloud Dark Forest: Exploding Cloud Bills with Just S3 Bucket Names

    By Ruohang Feng In Cloud-Exit 1269 words 6 min

    Ruohang FengCloud-ExitAWSObject Storage

    Cloud Dark Forest: Exploding Cloud Bills with Just S3 Bucket Names

    The dark forest law has emerged on public cloud: Anyone who knows your S3 object storage bucket name can explode your cloud bill. Imagine this: you create an empty, private AWS S3 storage bucket in your favorite region. What would your AWS bill look …

    The dark forest law has emerged on public cloud: Anyone who knows your S3 object storage bucket name can explode your cloud bill. Imagine this: you create an empty, private AWS S3 storage bucket in your favorite region. What would your AWS bill look …

  • The $20 Brother PolarDB: What Should Databases Actually Cost?

    By Ruohang Feng In Database 2587 words 13 min

    Ruohang FengXinchang LocalizationDomestic DatabaseCloudDatabase

    The $20 Brother PolarDB: What Should Databases Actually Cost?

    WeChat Public Account Yesterday, a bidding news attracted attention and heated discussion: “The IT industry is broken… 16.1 million dollar contract… 2.9 million (won)… maintenance fee 0.01 yuan… PolarDB unit price 130 yuan”. When I first saw this …

    WeChat Public Account Yesterday, a bidding news attracted attention and heated discussion: “The IT industry is broken… 16.1 million dollar contract… 2.9 million (won)… maintenance fee 0.01 yuan… PolarDB unit price 130 yuan”. When I first saw this …

  • Can Chinese Domestic Databases Really Compete?

    By Ruohang Feng In Database 1958 words 10 min

    Ruohang FengXinchang LocalizationDomestic DatabaseDatabaseCommentary

    Can Chinese Domestic Databases Really Compete?

    WeChat Public Account Friends often ask me, can Chinese domestic databases really compete? To be honest, it’s a question that offends people. So let’s try speaking with data - I hope the charts provided in this article can help readers understand …

    WeChat Public Account Friends often ask me, can Chinese domestic databases really compete? To be honest, it’s a question that offends people. So let’s try speaking with data - I hope the charts provided in this article can help readers understand …

  • Cloudflare Roundtable Interview and Q&A Record

    By Ruohang Feng In Cloud-Exit 2768 words 13 min

    Ruohang FengCloud-ExitCloudflare

    Cloudflare Roundtable Interview and Q&A Record

    Last week, I was invited as a roundtable guest to participate in Cloudflare’s Immerse conference in Shenzhen. During the Cloudflare Immerse cocktail party and dinner, I had in-depth discussions with Cloudflare’s APAC CMO, Greater China Technical …

    Last week, I was invited as a roundtable guest to participate in Cloudflare’s Immerse conference in Shenzhen. During the Cloudflare Immerse cocktail party and dinner, I had in-depth discussions with Cloudflare’s APAC CMO, Greater China Technical …

  • What Can We Learn from Tencent Cloud's Major Outage?

    By Ruohang Feng In Cloud-Exit 2048 words 10 min

    Ruohang FengCloud-ExitCloudIncident

    What Can We Learn from Tencent Cloud's Major Outage?

    Eight days after the outage, Tencent Cloud published a postmortem report for the April 8th major outage. I think this is a good thing, because Alibaba-Cloud’s Double 11 major outage official postmortem is still overdue. If public cloud vendors want …

    Eight days after the outage, Tencent Cloud published a postmortem report for the April 8th major outage. I think this is a good thing, because Alibaba-Cloud’s Double 11 major outage official postmortem is still overdue. If public cloud vendors want …

  • Cloudflare - The Cyber Buddha That Destroys Public Cloud

    By Ruohang Feng In Cloud-Exit 2083 words 10 min

    Ruohang FengCloud-ExitCloudflare

    Cloudflare - The Cyber Buddha That Destroys Public Cloud

    At today’s 2024 Developer Week, Cloudflare released a series of exciting new features, such as Python Workers and Workers AI, elevating the convenience of application development and delivery to an entirely new level. Compared to Cloudflare’s …

    At today’s 2024 Developer Week, Cloudflare released a series of exciting new features, such as Python Workers and Workers AI, elevating the convenience of application development and delivery to an entirely new level. Compared to Cloudflare’s …

  • Can Luo Yonghao Save Toothpaste Cloud?

    By Ruohang Feng In Cloud-Exit 809 words 4 min

    Ruohang FengCloud-ExitAlibaba Cloud

    Can Luo Yonghao Save Toothpaste Cloud?

    Luo Yonghao was once a brilliant digital product manager with decent IT industry credentials. But as they say, there’s a world of difference between industries. Luo selling cloud is like a street vendor simultaneously hawking meat, vegetables, eggs, …

    Luo Yonghao was once a brilliant digital product manager with decent IT industry credentials. But as they say, there’s a world of difference between industries. Luo selling cloud is like a street vendor simultaneously hawking meat, vegetables, eggs, …

  • Redis Going Non-Open-Source is a Disgrace to "Open-Source" and Public Cloud

    By Ruohang Feng In Database 4201 words 9 min

    Ruohang FengRedisCloudDatabaseOpen Source

    Redis Going Non-Open-Source is a Disgrace to "Open-Source" and Public Cloud

    Recently, Redis changed its license, causing controversy: starting from version 7.4, it uses RSALv2 and SSPLv1, no longer meeting OSI’s definition of “open source software.” But don’t get it wrong: Redis “going non-open source” is not a disgrace to …

    Recently, Redis changed its license, causing controversy: starting from version 7.4, it uses RSALv2 and SSPLv1, no longer meeting OSI’s definition of “open source software.” But don’t get it wrong: Redis “going non-open source” is not a disgrace to …

  • Analyzing Alibaba-Cloud Server Computing Cost

    By Ruohang Feng In Cloud-Exit 2423 words 12 min

    Ruohang FengCloud-ExitAlibaba Cloud

    Analyzing Alibaba-Cloud Server Computing Cost

    On Crazy Thursday, February 29, 2024, Alibaba-Cloud staged a major price cut, with promotional content flying everywhere. As the cloud computing mudslide, many followers asked me to comment. The flashy 20%, 50% off banners look impressive, but …

    On Crazy Thursday, February 29, 2024, Alibaba-Cloud staged a major price cut, with promotional content flying everywhere. As the cloud computing mudslide, many followers asked me to comment. The flashy 20%, 50% off banners look impressive, but …

  • Postgres is eating the database world

    By Ruohang Feng In PGSQL 2638 words 13 min

    Ruohang FengPostgreSQLPG EcosystemExtension

    Postgres is eating the database world

    PostgreSQL isn’t just a simple relational database; it’s a data management framework with the potential to engulf the entire database realm. The trend of “Using Postgres for Everything” is no longer limited to a few elite teams but is becoming a …

    PostgreSQL isn’t just a simple relational database; it’s a data management framework with the potential to engulf the entire database realm. The trend of “Using Postgres for Everything” is no longer limited to a few elite teams but is becoming a …

  • Pigsty v2.6: PostgreSQL Crashes the OLAP Party

    By Ruohang Feng In PIGSTY 1757 words 9 min

    Ruohang FengPigstyPigsty

    Pigsty v2.6: PostgreSQL Crashes the OLAP Party

    GitHub Release | Release Note On the last day of February, Pigsty v2.6 is officially released! This version makes PostgreSQL 16 the default major version and introduces a series of new extensions, including ParadeDB and DuckDB, elevating …

    GitHub Release | Release Note On the last day of February, Pigsty v2.6 is officially released! This version makes PostgreSQL 16 the default major version and introduces a series of new extensions, including ParadeDB and DuckDB, elevating …

  • Technical Minimalism: Just Use PostgreSQL for Everything

    By Ruohang Feng In PGSQL 981 words 5 min

    Ruohang FengPostgreSQLPG EcosystemTranslation

    Technical Minimalism: Just Use PostgreSQL for Everything

    This article was published by Stephan Schmidt @ KingOfCoders on Hacker News and sparked heated discussion: Using PostgreSQL to replace Kafka, RabbitMQ, ElasticSearch, MongoDB, and Redis is a viable approach that can dramatically reduce system …

    This article was published by Stephan Schmidt @ KingOfCoders on Hacker News and sparked heated discussion: Using PostgreSQL to replace Kafka, RabbitMQ, ElasticSearch, MongoDB, and Redis is a viable approach that can dramatically reduce system …

  • New PostgreSQL Ecosystem Player: ParadeDB

    By Ruohang Feng In PGSQL 870 words 5 min

    Ruohang FengPostgreSQLPG EcosystemExtension

    New PostgreSQL Ecosystem Player: ParadeDB

    Original WeChat Article Link New PostgreSQL Ecosystem Player: ParadeDB YC S23 invested in a new project called ParadeDB, which is extremely interesting. Their slogan is “Postgres for Search & Analytics — Modern Elasticsearch Alternative built on …

    Original WeChat Article Link New PostgreSQL Ecosystem Player: ParadeDB YC S23 invested in a new project called ParadeDB, which is extremely interesting. Their slogan is “Postgres for Search & Analytics — Modern Elasticsearch Alternative built on …

  • Will DBAs Be Eliminated by Cloud?

    By Ruohang Feng In Cloud-Exit 3598 words 17 min

    Ruohang FengCloud-ExitPG AdminRDS

    Will DBAs Be Eliminated by Cloud?

    Two days ago, the ninth episode of Open-Source Talks had the theme “Will DBAs Be Eliminated by Cloud?” As the host, I restrained myself from jumping into the debate throughout, so I’m writing this article to discuss this question: Will DBAs be …

    Two days ago, the ninth episode of Open-Source Talks had the theme “Will DBAs Be Eliminated by Cloud?” As the host, I restrained myself from jumping into the debate throughout, so I’m writing this article to discuss this question: Will DBAs be …

  • PostgreSQL's Impressive Scalability

    By Ruohang Feng In PGSQL 2161 words 11 min

    Ruohang FengPostgreSQLPerformanceTranslation

    PostgreSQL's Impressive Scalability

    Source: How Cloudflare Supports 55M QPS with 15 PostgreSQL Clusters In July 2009, in California, USA, a startup team created a Content Delivery Network (CDN) called Cloudflare to accelerate internet requests, making network access more stable and …

    Source: How Cloudflare Supports 55M QPS with 15 PostgreSQL Clusters In July 2009, in California, USA, a startup team created a Content Delivery Network (CDN) called Cloudflare to accelerate internet requests, making network access more stable and …

  • PostgreSQL Wins 2024 Database of the Year Award! (Fifth Time)

    By Ruohang Feng In PGSQL 722 words 4 min

    Ruohang FengPostgreSQLPG Ecosystem

    PostgreSQL Wins 2024 Database of the Year Award! (Fifth Time)

    Today, the famous database popularity ranking DB-Engine announced the 2024 Database of the Year. PostgreSQL has won this honor for the fifth time. Of course, PostgreSQL was also the Database of the Year in 2023, 2019, 2018, and 2017. If Snowflake …

    Today, the famous database popularity ranking DB-Engine announced the 2024 Database of the Year. PostgreSQL has won this honor for the fifth time. Of course, PostgreSQL was also the Database of the Year in 2023, 2019, 2018, and 2017. If Snowflake …

  • 2023 Year-End Summary: Thirty and Established

    By Ruohang Feng In Miscs 1641 words 8 min

    Ruohang FengEssay

    2023 Year-End Summary: Thirty and Established

    Thirty and Established In 2023, I turned thirty. As Confucius said, “At thirty, one establishes oneself.” I’ve managed to accomplish something - started a family, built a career, gained some technical reputation. On the last day of 2023, let me take …

    Thirty and Established In 2023, I turned thirty. As Confucius said, “At thirty, one establishes oneself.” I’ve managed to accomplish something - started a family, built a career, gained some technical reputation. On the last day of 2023, let me take …

  • MySQL's ACID is a real mess

    By Ruohang Feng In Database 3102 words 15 min

    Ruohang FengMySQLDatabaseTransactions

    MySQL's ACID is a real mess

    MySQL was once the world’s most popular open-source relational database. However, popularity doesn’t mean advanced, and popular things can have big problems. JEPSEN’s evaluation of MySQL’s isolation levels pierced through this veneer — in …

    MySQL was once the world’s most popular open-source relational database. However, popularity doesn’t mean advanced, and popular things can have big problems. JEPSEN’s evaluation of MySQL’s isolation levels pierced through this veneer — in …

  • S3: Elite to Mediocre

    By Ruohang Feng In Cloud-Exit 2502 words 5 min

    Ruohang FengCloud-ExitCloudObject StorageAWS

    S3: Elite to Mediocre

    WeChat Object storage (S3) has been a defining service of cloud computing, once hailed as a paragon of cost reduction in the cloud era. Unfortunately, with the evolution of hardware and the emergence of resources cloud (Cloudflare R2) and …

    WeChat Object storage (S3) has been a defining service of cloud computing, once hailed as a paragon of cost reduction in the cloud era. Unfortunately, with the evolution of hardware and the emergence of resources cloud (Cloudflare R2) and …

  • Database in K8S: Pros & Cons

    By Ruohang Feng In Database 2421 words 12 min

    Ruohang FengDatabaseContainersArchitecture

    Database in K8S: Pros & Cons

    Medium |Wechat Whether databases should be housed in Kubernetes/Docker remains highly controversial. While Kubernetes (k8s) excels in managing stateless applications, it has fundamental drawbacks with stateful services, especially databases like …

    Medium |Wechat Whether databases should be housed in Kubernetes/Docker remains highly controversial. While Kubernetes (k8s) excels in managing stateless applications, it has fundamental drawbacks with stateful services, especially databases like …

  • From Cost-Reduction Jokes to Real Cost Reduction and Efficiency

    By Ruohang Feng In Cloud-Exit 1871 words 9 min

    Ruohang FengCloud-ExitAlibaba CloudIncident

    From Cost-Reduction Jokes to Real Cost Reduction and Efficiency

    Year-end is performance rush time, but internet giants are having major incidents one after another. They’ve turned “cost reduction and efficiency improvement” into literal “cost reduction jokes” — this is no longer just a meme, but official …

    Year-end is performance rush time, but internet giants are having major incidents one after another. They’ve turned “cost reduction and efficiency improvement” into literal “cost reduction jokes” — this is no longer just a meme, but official …

  • PostgreSQL Convention 2024

    By Ruohang Feng In PGSQL 7915 words 38 min

    Ruohang FengPostgreSQLPG Development

    PostgreSQL Convention 2024

    Background 0x01 Naming Convention 0x01 Design Convention 0x01 Query Convention 0x01 Admin Convention Roughly translated from PostgreSQL Convention 2024 with Google. 0x00 Background No Rules, No Lines The functions of PostgreSQL are very powerful, …

    Background 0x01 Naming Convention 0x01 Design Convention 0x01 Query Convention 0x01 Admin Convention Roughly translated from PostgreSQL Convention 2024 with Google. 0x00 Background No Rules, No Lines The functions of PostgreSQL are very powerful, …

  • Are Specialized Vector Databases Dead?

    By Ruohang Feng In Database 1830 words 9 min

    Ruohang FengAIDatabaseVectorCommentary

    Are Specialized Vector Databases Dead?

    Vector storage and retrieval is a real need, but specialized vector databases are already dead. The ecological niche left for specialized vector databases might support one company’s survival, but trying to build an industry around AI stories is …

    Vector storage and retrieval is a real need, but specialized vector databases are already dead. The ecological niche left for specialized vector databases might support one company’s survival, but trying to build an industry around AI stories is …

  • Reclaim Hardware Bonus from the Cloud

    By Ruohang Feng In Cloud-Exit 2837 words 14 min

    Ruohang FengCloud-ExitCloudHardware

    Reclaim Hardware Bonus from the Cloud

    Hardware is interesting again, with the AI wave fueling a GPU frenzy. However, the intrigue isn’t limited to GPUs —— developments in CPUs and SSDs remain largely unnoticed by the majority of devs. A whole generation of developers is obscured by cloud …

    Hardware is interesting again, with the AI wave fueling a GPU frenzy. However, the intrigue isn’t limited to GPUs —— developments in CPUs and SSDs remain largely unnoticed by the majority of devs. A whole generation of developers is obscured by cloud …

  • What Can We Learn from Alibaba-Cloud's Global Outage?

    By Ruohang Feng In Cloud-Exit 2783 words 14 min

    Ruohang FengCloud-ExitAlibaba CloudIncident

    What Can We Learn from Alibaba-Cloud's Global Outage?

    A year after the last major incident, Alibaba-Cloud suffered another massive outage, creating an unprecedented record in the cloud computing industry — simultaneous failures across all global regions and all services. Since Alibaba-Cloud refuses to …

    A year after the last major incident, Alibaba-Cloud suffered another massive outage, creating an unprecedented record in the cloud computing industry — simultaneous failures across all global regions and all services. Since Alibaba-Cloud refuses to …

  • Harvesting Alibaba-Cloud Wool, Building Your Digital Homestead

    By Ruohang Feng In Cloud-Exit 2333 words 11 min

    Ruohang FengCloud-ExitAlibaba Cloud

    Harvesting Alibaba-Cloud Wool, Building Your Digital Homestead

    Alibaba-Cloud’s Double 11 offered a great deal: 2C/2G/3M ECS servers with a list price of ¥1500/year for just ¥99/year for three years (¥99 annual renewal available until 2026), plus they’re reportedly giving every Chinese university student a free …

    Alibaba-Cloud’s Double 11 offered a great deal: 2C/2G/3M ECS servers with a list price of ¥1500/year for just ¥99/year for three years (¥99 annual renewal available until 2026), plus they’re reportedly giving every Chinese university student a free …

  • Are Databases Really Being Strangled?

    By Ruohang Feng In Database 2228 words 11 min

    Ruohang FengHomegrownDomestic DatabaseDatabaseCommentary

    Are Databases Really Being Strangled?

    WeChat | Zhihu If “cloud databases” can be considered passable products with slightly underwhelming cost ROI, then many “domestic databases” are simply shoddy, inferior products that can’t be helped. Xinchuang OS/databases are essentially IT …

    WeChat | Zhihu If “cloud databases” can be considered passable products with slightly underwhelming cost ROI, then many “domestic databases” are simply shoddy, inferior products that can’t be helped. Xinchuang OS/databases are essentially IT …

  • Pigsty v2.5: Ubuntu & PG16

    By Ruohang Feng In PIGSTY 1821 words 9 min

    Ruohang FengPigstyPigsty

    Pigsty v2.5: Ubuntu & PG16

    GitHub Release | Release Note On Programmer’s Day (10/24), Pigsty v2.5.0 is released! This version adds support for Ubuntu and Debian operating systems. Combined with existing EL7/8/9 support, we’ve achieved a grand slam of mainstream Linux …

    GitHub Release | Release Note On Programmer’s Day (10/24), Pigsty v2.5.0 is released! This version adds support for Ubuntu and Debian operating systems. Combined with existing EL7/8/9 support, we’ve achieved a grand slam of mainstream Linux …

  • Which EL-Series OS Distribution Is Best?

    By Ruohang Feng In Database 1587 words 4 min

    Ruohang Feng信创国产化Domestic DatabaseLinuxPG AdminDatabase

    Which EL-Series OS Distribution Is Best?

    Many users have asked me what operating system is best for running databases. Especially considering that CentOS 7.9 will reach EOL next year, many users should need to upgrade their OS, so today I’m sharing some experience. TL;DR In short, if you’re …

    Many users have asked me what operating system is best for running databases. Especially considering that CentOS 7.9 will reach EOL next year, many users should need to upgrade their OS, so today I’m sharing some experience. TL;DR In short, if you’re …

  • FerretDB: PostgreSQL Disguised as MongoDB

    By Ruohang Feng In PGSQL 1230 words 6 min

    Ruohang FengPostgreSQLMongoDBPG EcosystemExtension

    FerretDB: PostgreSQL Disguised as MongoDB

    MongoDB was once an amazing technology that allowed developers to break free from relational database “schema constraints” and quickly build applications. However, over time, MongoDB abandoned its open-source nature, making it unavailable for many …

    MongoDB was once an amazing technology that allowed developers to break free from relational database “schema constraints” and quickly build applications. However, over time, MongoDB abandoned its open-source nature, making it unavailable for many …

  • How to Use pg_filedump for Data Recovery?

    By Ruohang Feng In PGSQL 2801 words 14 min

    Ruohang FengPostgreSQLPG AdminIncident

    How to Use pg_filedump for Data Recovery?

    Backups are a DBA’s lifeline — but what if your PostgreSQL database has already exploded and you have no backups? Maybe pg_filedump can help you! Recently encountered a rather outrageous case. The situation was this: a user’s PostgreSQL database was …

    Backups are a DBA’s lifeline — but what if your PostgreSQL database has already exploded and you have no backups? Maybe pg_filedump can help you! Recently encountered a rather outrageous case. The situation was this: a user’s PostgreSQL database was …

  • Pigsty v2.4: Monitor Cloud RDS

    By Ruohang Feng In PIGSTY 922 words 5 min

    Ruohang FengPigstyPigsty

    Pigsty v2.4: Monitor Cloud RDS

    GitHub Release | Release Note PostgreSQL released its new major version 16 today, bringing a series of improvements. Pigsty followed up within 1 hour of release with Pigsty v2.4, providing complete support for PostgreSQL 16 GA. Additionally, v2.4 …

    GitHub Release | Release Note PostgreSQL released its new major version 16 today, bringing a series of improvements. Pigsty followed up within 1 hour of release with Pigsty v2.4, providing complete support for PostgreSQL 16 GA. Additionally, v2.4 …

  • Modb Interviews Industry Leaders - Feng Ruohang

    By Ruohang Feng In Miscs 3907 words 19 min

    Ruohang FengEssay

    Modb Interviews Industry Leaders - Feng Ruohang

    Original WeChat Article | 【Modb Interviews Industry Leaders: Feng Ruohang】 Introduction: Recently, a historic debate in the database industry has sparked heated discussion. The post-90s entrepreneur Feng Ruohang, known as the “ace debater” in the …

    Original WeChat Article | 【Modb Interviews Industry Leaders: Feng Ruohang】 Introduction: Recently, a historic debate in the database industry has sparked heated discussion. The post-90s entrepreneur Feng Ruohang, known as the “ace debater” in the …

  • What Kind of Self-Reliance Do Infra Software Need?

    By Ruohang Feng In Database 1255 words 3 min

    Ruohang Feng信创国产化Domestic DatabaseDatabase

    What Kind of Self-Reliance Do Infra Software Need?

    WeChat | Zhihu Original When we talk about self-reliance and control, what are we really talking about? For infrastructure software (operating systems/databases), does self-reliance and control mean: developed, distributed, and controlled by Chinese …

    WeChat | Zhihu Original When we talk about self-reliance and control, what are we really talking about? For infrastructure software (operating systems/databases), does self-reliance and control mean: developed, distributed, and controlled by Chinese …

  • Pigsty v2.3: Richer App Ecosystem

    By Ruohang Feng In PIGSTY 1507 words 8 min

    Ruohang FengPigstyPigsty

    Pigsty v2.3: Richer App Ecosystem

    GitHub Release | Release Note Pigsty v2.3 is here! This release further refines the monitoring system, enriches the application ecosystem, and keeps pace with PostgreSQL’s routine minor version updates (CVE fixes). Pigsty v2.3 follows PostgreSQL’s …

    GitHub Release | Release Note Pigsty v2.3 is here! This release further refines the monitoring system, enriches the application ecosystem, and keeps pace with PostgreSQL’s routine minor version updates (CVE fixes). Pigsty v2.3 follows PostgreSQL’s …

  • Pigsty v2.2: Monitoring System Reborn

    By Ruohang Feng In PIGSTY 1767 words 9 min

    Ruohang FengPigstyPigsty

    Pigsty v2.2: Monitoring System Reborn

    GitHub Release | Release Note Pigsty v2.2 is here! The world’s most powerful PostgreSQL monitoring system receives an epic upgrade — completely rebuilt on Grafana v10, pushing PG observability to a whole new level with a dramatically improved user …

    GitHub Release | Release Note Pigsty v2.2 is here! The world’s most powerful PostgreSQL monitoring system receives an epic upgrade — completely rebuilt on Grafana v10, pushing PG observability to a whole new level with a dramatically improved user …

  • Cloud Computing Mudslide: Deconstructing Public Cloud with Data

    By Ruohang Feng In Cloud-Exit 1878 words 9 min

    Ruohang FengCloud-Exit

    Cloud Computing Mudslide: Deconstructing Public Cloud with Data

    Once upon a time, “going to cloud” was almost politically correct in tech circles, but few people use hard data to analyze the trade-offs involved. I’m willing to be this skeptic: let me use hard data and personal stories to explain the traps and …

    Once upon a time, “going to cloud” was almost politically correct in tech circles, but few people use hard data to analyze the trade-offs involved. I’m willing to be this skeptic: let me use hard data and personal stories to explain the traps and …

  • DHH: Cloud-Exit Saves Over Ten Million, More Than Expected!

    By Ruohang Feng In Cloud-Exit 691 words 4 min

    Ruohang FengCloud-ExitTranslation

    DHH: Cloud-Exit Saves Over Ten Million, More Than Expected!

    Author: DHH, “Our Cloud-Exit savings will now top ten million over five years” Feng’s Commentary As a cloud exit advocate, I’m gratified to see DHH’s tremendous success in the cloud exit process. The world always rewards leaders with the wisdom to …

    Author: DHH, “Our Cloud-Exit savings will now top ten million over five years” Feng’s Commentary As a cloud exit advocate, I’m gratified to see DHH’s tremendous success in the cloud exit process. The world always rewards leaders with the wisdom to …

  • FinOps: Endgame Cloud-Exit

    By Ruohang Feng In Cloud-Exit 3939 words 8 min

    Ruohang FengCloudCloud-ExitCloudCost

    FinOps: Endgame Cloud-Exit

    At the SACC 2023 FinOps session, I fiercely criticized cloud vendors. This is a transcript of my speech, introducing the ultimate FinOps concept — Cloud-Exit and its best practice. TL; DR Misaligned FinOps Focus: Total Cost = Unit Price x Quantity. …

    At the SACC 2023 FinOps session, I fiercely criticized cloud vendors. This is a transcript of my speech, introducing the ultimate FinOps concept — Cloud-Exit and its best practice. TL; DR Misaligned FinOps Focus: Total Cost = Unit Price x Quantity. …

  • PostgreSQL, The most successful database

    By Ruohang Feng In PGSQL 3055 words 7 min

    Ruohang FengPostgreSQLPG Ecosystem

    PostgreSQL, The most successful database

    The StackOverflow 2023 Survey, featuring feedback from 90K developers across 185 countries, is out. PostgreSQL topped all three survey categories (used, loved, and wanted), earning its title as the undisputed “Decathlete Database” – it’s hailed as …

    The StackOverflow 2023 Survey, featuring feedback from 90K developers across 185 countries, is out. PostgreSQL topped all three survey categories (used, loved, and wanted), earning its title as the undisputed “Decathlete Database” – it’s hailed as …

  • ISD Dataset: Analyzing 120 Years of Global Climate Change

    By Ruohang Feng In Miscs 1148 words 6 min

    Ruohang FengEssay

    ISD Dataset: Analyzing 120 Years of Global Climate Change

    Original WeChat Article ISD stands for Integrated Surface Dataset, a dataset published by NOAA (National Oceanic and Atmospheric Administration). It contains observational records from nearly 30,000 global surface meteorological stations from 1900 …

    Original WeChat Article ISD stands for Integrated Surface Dataset, a dataset published by NOAA (National Oceanic and Atmospheric Administration). It contains observational records from nearly 30,000 global surface meteorological stations from 1900 …

  • Why Isn't Cloud Computing More Profitable Than Sand Mining?

    By Ruohang Feng In Cloud-Exit 2236 words 11 min

    Ruohang FengCloud-ExitBusiness

    Why Isn't Cloud Computing More Profitable Than Sand Mining?

    Public cloud margins worse than sand mining, Why are pig-butchering schemes losing money? Resource-selling models heading toward price wars, Open source alternatives breaking monopoly dreams! Service competitiveness gradually neutralized, Where is …

    Public cloud margins worse than sand mining, Why are pig-butchering schemes losing money? Resource-selling models heading toward price wars, Open source alternatives breaking monopoly dreams! Service competitiveness gradually neutralized, Where is …

  • SLA: Placebo or Insurance?

    By Ruohang Feng In Cloud-Exit 2398 words 5 min

    Ruohang FengCloud-ExitCloud

    SLA: Placebo or Insurance?

    In the world of cloud computing, Service Level Agreements (SLAs) are seen as a cloud provider’s commitment to the quality of its services. However, a closer examination of these SLAs reveals that they might not offer the safety net one might expect: …

    In the world of cloud computing, Service Level Agreements (SLAs) are seen as a cloud provider’s commitment to the quality of its services. However, a closer examination of these SLAs reveals that they might not offer the safety net one might expect: …

  • Pigsty v2.1: Vector + Full PG Version Support!

    By Ruohang Feng In PIGSTY 1224 words 6 min

    Ruohang FengPigstyPigsty

    Pigsty v2.1: Vector + Full PG Version Support!

    GitHub Release | Release Note Following PostgreSQL’s summer minor version updates and the release of PG 16 Beta, Pigsty closely tracks the PG community with the v2.1 release. This update supports PostgreSQL 16 Beta1 high availability and new …

    GitHub Release | Release Note Following PostgreSQL’s summer minor version updates and the release of PG 16 Beta, Pigsty closely tracks the PG community with the v2.1 release. This update supports PostgreSQL 16 Beta1 high availability and new …

  • Back to Basics: Tech Reflection Chronicles

    By Ruohang Feng In Database 820 words 2 min

    Ruohang FengBack to BasicsCloudDatabaseArchitectureCommentary

    Back to Basics: Tech Reflection Chronicles

    Recently, there have been some hotly debated topics in the tech community: Are cloud databases an IQ tax? Is public cloud a pig-killing scam? Are distributed databases a false need? Are microservices a stupid idea? Do you still need ops and DBAs? Is …

    Recently, there have been some hotly debated topics in the tech community: Are cloud databases an IQ tax? Is public cloud a pig-killing scam? Are distributed databases a false need? Are microservices a stupid idea? Do you still need ops and DBAs? Is …

  • Database Demand Hierarchy Pyramid

    By Ruohang Feng In Database 1660 words 8 min

    Ruohang FengDatabaseArchitectureSoftware Engineering

    Database Demand Hierarchy Pyramid

    Similar to Maslow’s hierarchy of needs, user demands for databases also have a progressive hierarchy. User demands for databases can be divided into eight levels from bottom to top, corresponding to human needs: Physiological Needs: Functionality - …

    Similar to Maslow’s hierarchy of needs, user demands for databases also have a progressive hierarchy. User demands for databases can be divided into eight levels from bottom to top, corresponding to human needs: Physiological Needs: Functionality - …

  • AI Large Models and Vector Database PGVector

    By Ruohang Feng In PGSQL 1931 words 10 min

    Ruohang FengPostgreSQLPG DevelopmentExtensionVector

    AI Large Models and Vector Database PGVector

    New AI applications have shown exponential growth over the past year, and these applications face a common challenge: how to store and query AI embeddings represented as vectors at scale. This article focuses on vector databases hyped by AI, …

    New AI applications have shown exponential growth over the past year, and these applications face a common challenge: how to store and query AI embeddings represented as vectors at scale. This article focuses on vector databases hyped by AI, …

  • NewSQL: Distributive Nonsens

    By Ruohang Feng In Database 2686 words 6 min

    Ruohang FengDatabaseDistributed SystemsCommentary

    NewSQL: Distributive Nonsens

    WeChat Column As hardware technology advances, the capacity and performance of standalone databases have reached unprecedented heights. In this transformative era, distributed (TP) databases appear utterly powerless, much like the “data middle …

    WeChat Column As hardware technology advances, the capacity and performance of standalone databases have reached unprecedented heights. In this transformative era, distributed (TP) databases appear utterly powerless, much like the “data middle …

  • Will AI Have Self-Awareness?

    By Ruohang Feng In AI 809 words 4 min

    Ruohang FengAI

    Will AI Have Self-Awareness?

    WeChat original Large models can appear conscious, but self-awareness is optional—and maybe dangerous before ethics catch up. Pantheon sparked these thoughts. What is self-awareness? When we say “self-awareness,” what do we actually mean? Let’s …

    WeChat original Large models can appear conscious, but self-awareness is optional—and maybe dangerous before ethics catch up. Pantheon sparked these thoughts. What is self-awareness? When we say “self-awareness,” what do we actually mean? Let’s …

  • AI Cult Rhapsody

    By Ruohang Feng In AI 306 words 2 min

    Ruohang FengAI

    AI Cult Rhapsody

    WeChat original “Humans are the bootloader for silicon life.” —Elon Musk Maybe we’re about to witness an AI-worshipping religion. Imagine this: Humans are lumps of negative entropy, hard-coded to reproduce via clumsy genetics. In digital space, with …

    WeChat original “Humans are the bootloader for silicon life.” —Elon Musk Maybe we’re about to witness an AI-worshipping religion. Imagine this: Humans are lumps of negative entropy, hard-coded to reproduce via clumsy genetics. In digital space, with …

  • EBS: Pig Slaughter Scam

    By Ruohang Feng In Cloud-Exit 3862 words 8 min

    Ruohang FengCloudCloud-ExitCloud

    EBS: Pig Slaughter Scam

    We already answer the question: Is RDS an Idiot Tax?. But when compared to the hundredfold markup of public cloud block storage, cloud databases seem almost reasonable. This article uses real data to reveal the true business model of public cloud: …

    We already answer the question: Is RDS an Idiot Tax?. But when compared to the hundredfold markup of public cloud block storage, cloud databases seem almost reasonable. This article uses real data to reveal the true business model of public cloud: …

  • Garbage QCloud CDN: From Getting Started to Giving Up?

    By Ruohang Feng In Cloud-Exit 814 words 4 min

    Ruohang FengCloudCloudflare

    Garbage QCloud CDN: From Getting Started to Giving Up?

    While Swedish Ma and I disagree sharply on cloud databases VS DBA issues, we can reach consensus on one point: domestic public cloud vendors really make garbage. In Ma’s words: “Alibaba-Cloud is a legitimate cloud with poor engineering quality, but …

    While Swedish Ma and I disagree sharply on cloud databases VS DBA issues, we can reach consensus on one point: domestic public cloud vendors really make garbage. In Ma’s words: “Alibaba-Cloud is a legitimate cloud with poor engineering quality, but …

  • Refuting "Why You Still Shouldn't Hire a DBA"

    By Ruohang Feng In Cloud-Exit 2338 words 11 min

    Ruohang FengCloud-ExitRDSPG Admin

    Refuting "Why You Still Shouldn't Hire a DBA"

    Guo Degang has a comedy routine: “Say I tell a rocket scientist, your rocket is no good, the fuel is wrong. I think it should burn wood, better yet coal, and it has to be premium coal, not washed coal. If that scientist takes me seriously, he …

    Guo Degang has a comedy routine: “Say I tell a rocket scientist, your rocket is no good, the fuel is wrong. I think it should burn wood, better yet coal, and it has to be premium coal, not washed coal. If that scientist takes me seriously, he …

  • Pigsty v2.0: Open-Source RDS PostgreSQL Alternative

    By Ruohang Feng In PIGSTY 3404 words 16 min

    Ruohang FengPigstyPigsty

    Pigsty v2.0: Open-Source RDS PostgreSQL Alternative

    GitHub Release | Release Note 2023/02/28, Pigsty v2.0.0 is officially released, bringing a series of major feature updates. PIGSTY now stands for “PostgreSQL In Great STYle” — PostgreSQL at its best. Pigsty’s positioning has also evolved from …

    GitHub Release | Release Note 2023/02/28, Pigsty v2.0.0 is officially released, bringing a series of major feature updates. PIGSTY now stands for “PostgreSQL In Great STYle” — PostgreSQL at its best. Pigsty’s positioning has also evolved from …

  • Paradigm Shift: From Cloud to Local-First

    By Ruohang Feng In Cloud-Exit 2111 words 10 min

    Ruohang FengCloud-ExitOpen Source

    Paradigm Shift: From Cloud to Local-First

    In the previous article, we used data to answer “Are Cloud Databases an Intelligence Tax?"—the exorbitant markups of several to over ten times are undoubtedly a scam for users outside the applicable spectrum. But we can dig deeper: why are public …

    In the previous article, we used data to answer “Are Cloud Databases an Intelligence Tax?"—the exorbitant markups of several to over ten times are undoubtedly a scam for users outside the applicable spectrum. But we can dig deeper: why are public …

  • Are Cloud Databases an IQ Tax?

    By Ruohang Feng In Cloud-Exit 5417 words 11 min

    Ruohang FengCloud-ExitRDSAWSAlibaba Cloud

    Are Cloud Databases an IQ Tax?

    Winter is coming, tech giants are laying off workers entering cost-reduction mode. Can cloud databases, the number one public cloud cash cow, still tell their story? Recently, an article by DHH, co-founder of Basecamp & HEY, caused a stir【1,2】. The …

    Winter is coming, tech giants are laying off workers entering cost-reduction mode. Can cloud databases, the number one public cloud cash cow, still tell their story? Recently, an article by DHH, co-founder of Basecamp & HEY, caused a stir【1,2】. The …

  • How Powerful is PostgreSQL Really?

    By Ruohang Feng In PGSQL 2308 words 11 min

    Ruohang FengPostgreSQLPG EcosystemPerformance

    How Powerful is PostgreSQL Really?

    Previously, we analyzed StackOverflow survey data to explain “Why PostgreSQL is the Most Successful Database”. This time we’ll let performance data speak for itself, discussing just how powerful the most successful PostgreSQL really is, helping you …

    Previously, we analyzed StackOverflow survey data to explain “Why PostgreSQL is the Most Successful Database”. This time we’ll let performance data speak for itself, discussing just how powerful the most successful PostgreSQL really is, helping you …

  • Why PostgreSQL is the Most Successful Database?

    By Ruohang Feng In PGSQL 3092 words 15 min

    Ruohang FengPostgreSQLPG Ecosystem

    Why PostgreSQL is the Most Successful Database?

    When we say a database is “successful,” what exactly do we mean? Is it about features, performance, usability, or cost, ecosystem, complexity? There are many metrics, but ultimately users decide. Database users are developers, so what about …

    When we say a database is “successful,” what exactly do we mean? Is it about features, performance, usability, or cost, ecosystem, complexity? There are many metrics, but ultimately users decide. Database users are developers, so what about …

  • Post-90s, Quit Job to Start Business, Says Will Crush Cloud Databases

    By Ruohang Feng In Miscs 3256 words 16 min

    Ruohang FengEssay

    Post-90s, Quit Job to Start Business, Says Will Crush Cloud Databases

    Original WeChat Article | Open-Source China Article Published by: OSCHINA Open-Source China Interviewee: Feng Ruohang (Pigsty Founder) Feng Ruohang has been quite busy lately. After a startup camp pitch in June, he added two to three hundred …

    Original WeChat Article | Open-Source China Article Published by: OSCHINA Open-Source China Interviewee: Feng Ruohang (Pigsty Founder) Feng Ruohang has been quite busy lately. After a startup camp pitch in June, he added two to three hundred …

  • Pigsty v1.5: Docker Application Support, Infrastructure Self-Monitoring

    By Ruohang Feng In PIGSTY 2239 words 11 min

    Ruohang FengPigstyPigsty

    Pigsty v1.5: Docker Application Support, Infrastructure Self-Monitoring

    GitHub Release | Release Note Pigsty v1.5 is officially released! Complete Docker support brings a rich application ecosystem — countless database-backed software works out of the box! Other improvements include: infrastructure self-monitoring, …

    GitHub Release | Release Note Pigsty v1.5 is officially released! Complete Docker support brings a rich application ecosystem — countless database-backed software works out of the box! Other improvements include: infrastructure self-monitoring, …

  • Is DBA Still a Good Job?

    By Ruohang Feng In Cloud-Exit 1538 words 8 min

    Ruohang FengCloud-ExitRDSPG Admin

    Is DBA Still a Good Job?

    Ant Financial had a self-deprecating joke: besides regulation, only DBAs could bring down Alipay. In the digital age, data is the core asset of many enterprises, especially for internet/software service companies. The people responsible for …

    Ant Financial had a self-deprecating joke: besides regulation, only DBAs could bring down Alipay. In the digital age, data is the core asset of many enterprises, especially for internet/software service companies. The people responsible for …

  • Cloud RDS: From Database Drop to Exit

    By Ruohang Feng In Cloud-Exit 916 words 5 min

    Ruohang FengCloud-ExitPG AdminRDS

    Cloud RDS: From Database Drop to Exit

    In my previous article “Is DBA Still a Good Job”, I mentioned: Although DBA as a profession is declining, who knows if DBAs might become trendy again after several terrifying large-scale cloud database failures. Well, I recently witnessed a live …

    In my previous article “Is DBA Still a Good Job”, I mentioned: Although DBA as a profession is declining, who knows if DBAs might become trendy again after several terrifying large-scale cloud database failures. Well, I recently witnessed a live …

  • Pigsty v1.4: Modular Architecture, MatrixDB Data Warehouse Support

    By Ruohang Feng In PIGSTY 2179 words 11 min

    Ruohang FengPigstyPigsty

    Pigsty v1.4: Modular Architecture, MatrixDB Data Warehouse Support

    GitHub Release | Release Note Pigsty v1.4 is officially released! A brand new modular architecture: four built-in modules INFRA, NODES, PGSQL, REDIS can be used independently and freely combined; new MatrixDB time-series data warehouse deployment …

    GitHub Release | Release Note Pigsty v1.4 is officially released! A brand new modular architecture: four built-in modules INFRA, NODES, PGSQL, REDIS can be used independently and freely combined; new MatrixDB time-series data warehouse deployment …

  • Pigsty v1.3: Redis Support, PGCAT Overhaul, PGSQL Enhancements

    By Ruohang Feng In PIGSTY 653 words 4 min

    Ruohang FengPigstyPigsty

    Pigsty v1.3: Redis Support, PGCAT Overhaul, PGSQL Enhancements

    GitHub Release | Release Note Pigsty v1.3 is officially released, featuring Redis support, a rebuilt PGCAT application, and enhanced PGSQL monitoring. Redis Support While PostgreSQL is the world’s most advanced open-source relational database, every …

    GitHub Release | Release Note Pigsty v1.3 is officially released, featuring Redis support, a rebuilt PGCAT application, and enhanced PGSQL monitoring. Redis Support While PostgreSQL is the world’s most advanced open-source relational database, every …

  • Pigsty v1.2: PG14 Default, Monitor Existing PG

    By Ruohang Feng In PIGSTY 727 words 4 min

    Ruohang FengPigstyPigsty

    Pigsty v1.2: PG14 Default, Monitor Existing PG

    GitHub Release | Release Note Pigsty v1.2 is officially released, making PostgreSQL 14 the default version and adding support for monitoring existing database instances independently. PostgreSQL 14 Becomes the Default PostgreSQL 14 was released last …

    GitHub Release | Release Note Pigsty v1.2 is officially released, making PostgreSQL 14 the default version and adding support for monitoring existing database instances independently. PostgreSQL 14 Becomes the Default PostgreSQL 14 was released last …

  • Pigsty v1.1: Homepage, Jupyter, Pev2, PgBadger

    By Ruohang Feng In PIGSTY 956 words 5 min

    Ruohang FengPigstyPigsty

    Pigsty v1.1: Homepage, Jupyter, Pev2, PgBadger

    GitHub Release | Release Note Pigsty v1.1 is officially released, featuring a brand-new homepage design, plus support for JupyterLab, PGWeb, PEV2, PgBadger, and other useful tools. Brand New Homepage The Home Dashboard in Grafana has long served as …

    GitHub Release | Release Note Pigsty v1.1 is officially released, featuring a brand-new homepage design, plus support for JupyterLab, PGWeb, PEV2, PgBadger, and other useful tools. Brand New Homepage The Home Dashboard in Grafana has long served as …

  • The WeChat Photo Album Access Issue

    By Ruohang Feng In Miscs 770 words 4 min

    Ruohang FengEssay

    The WeChat Photo Album Access Issue

    Original WeChat Official Account Article Last night, I saw news about WeChat accessing user photo albums in the background, and WeChat responded: While such shady behavior from Chinese apps doesn’t surprise me, in the spirit of seeking truth, I got …

    Original WeChat Official Account Article Last night, I saw news about WeChat accessing user photo albums in the background, and WeChat responded: While such shady behavior from Chinese apps doesn’t surprise me, in the spirit of seeking truth, I got …

  • Life at 28

    By Ruohang Feng In Miscs 1432 words 7 min

    Ruohang FengEssay

    Life at 28

    Life at 28 Another Mid-Autumn Festival, another year older. My solar birthday (September 21st) coinciding with Mid-Autumn Festival should only happen three times in my lifetime: once at age 9 in 2002, once at age 28 in 2021, and the last time at age …

    Life at 28 Another Mid-Autumn Festival, another year older. My solar birthday (September 21st) coinciding with Mid-Autumn Festival should only happen three times in my lifetime: once at age 9 in 2002, once at age 28 in 2021, and the last time at age …

  • Pigsty v1.0: GA Release with Monitoring Overhaul

    By Ruohang Feng In PIGSTY 1422 words 7 min

    Ruohang FengPigstyPigsty

    Pigsty v1.0: GA Release with Monitoring Overhaul

    GitHub Release | Release Note After over a year of iterations and refinement, Pigsty officially ships v1.0.0 GA. Pigsty (/ˈpɪɡˌstaɪ/) stands for PostgreSQL In Graphic STYle — PostgreSQL, visualized. What is Pigsty? Pigsty is a batteries-included …

    GitHub Release | Release Note After over a year of iterations and refinement, Pigsty officially ships v1.0.0 GA. Pigsty (/ˈpɪɡˌstaɪ/) stands for PostgreSQL In Graphic STYle — PostgreSQL, visualized. What is Pigsty? Pigsty is a batteries-included …

  • Majestic Southern Taihang

    By Ruohang Feng In Trips 0 words 1 min

    Ruohang FengTravel

    Majestic Southern Taihang

  • On the Hills of Manchuria

    By Ruohang Feng In Trips 186 words 1 min

    Ruohang FengTravel

    On the Hills of Manchuria

    The Dragon Boat Festival holiday coincided with college entrance exams. Not wanting to see crowds everywhere, I discussed with two colleagues and decided to find a weekend for early off-peak travel. We settled on Hulunbuir - Friday night flight from …

    The Dragon Boat Festival holiday coincided with college entrance exams. Not wanting to see crowds everywhere, I discussed with two colleagues and decided to find a weekend for early off-peak travel. We settled on Hulunbuir - Friday night flight from …

  • Ready-to-Use PostgreSQL Distribution: Pigsty

    By Ruohang Feng In PGSQL 2044 words 10 min

    Ruohang FengPostgreSQLPigstyRDS

    Ready-to-Use PostgreSQL Distribution: Pigsty

    What is Pigsty Pigsty is a ready-to-use production-grade open-source PostgreSQL distribution. A distribution refers to a complete database solution consisting of a database kernel and its suite of software packages. For example, Linux is an operating …

    What is Pigsty Pigsty is a ready-to-use production-grade open-source PostgreSQL distribution. A distribution refers to a complete database solution consisting of a database kernel and its suite of software packages. For example, Linux is an operating …

  • Why Does PostgreSQL Have a Bright Future?

    By Ruohang Feng In PGSQL 4900 words 24 min

    Ruohang FengPostgreSQLPG Ecosystem

    Why Does PostgreSQL Have a Bright Future?

    Recently, everything I’ve been working on revolves around the PostgreSQL ecosystem, because I’ve always felt this is a direction with unlimited potential. Why do I say this? Because databases are the core component of information systems, relational …

    Recently, everything I’ve been working on revolves around the PostgreSQL ecosystem, because I’ve always felt this is a direction with unlimited potential. Why do I say this? Because databases are the core component of information systems, relational …

  • Pigsty v0.9: CLI + Logs

    By Ruohang Feng In PIGSTY 262 words 2 min

    Ruohang FengPigstyPigsty

    Pigsty v0.9: CLI + Logs

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.9.0 New Stuff One-liner install: curl -fsSL https://pigsty.cc/install | bash bootstraps everything. pigsty-cli: wraps the common Ansible playbooks so you stop copy-pasting command …

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.9.0 New Stuff One-liner install: curl -fsSL https://pigsty.cc/install | bash bootstraps everything. pigsty-cli: wraps the common Ansible playbooks so you stop copy-pasting command …

  • Pigsty v0.8: Service Provisioning

    By Ruohang Feng In PIGSTY 183 words 1 min

    Ruohang FengPigstyPigsty

    Pigsty v0.8: Service Provisioning

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.8.0 v0.8 finalizes the provisioning API. Services are completely rebuilt: instead of a hard-coded primary/replica pair you can now declare any number of services, plug in HAProxy, swap …

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.8.0 v0.8 finalizes the provisioning API. Services are completely rebuilt: instead of a hard-coded primary/replica pair you can now declare any number of services, plug in HAProxy, swap …

  • Localization and Collation Rules in PostgreSQL

    By Ruohang Feng In PGSQL 2707 words 6 min

    Ruohang FengPostgreSQLPG Admin

    Localization and Collation Rules in PostgreSQL

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

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

  • Implementing Advanced Fuzzy Search

    By Ruohang Feng In PGSQL 3238 words 7 min

    Ruohang FengPostgreSQLPG Development

    Implementing Advanced Fuzzy Search

    In daily development, we often encounter requirements for fuzzy search. Today, let’s briefly discuss how to implement some advanced fuzzy search using PostgreSQL. Of course, the fuzzy search I’m talking about here isn’t the old-fashioned LIKE …

    In daily development, we often encounter requirements for fuzzy search. Today, let’s briefly discuss how to implement some advanced fuzzy search using PostgreSQL. Of course, the fuzzy search I’m talking about here isn’t the old-fashioned LIKE …

  • PostgreSQL Logical Replication Deep Dive

    By Ruohang Feng In PGSQL 6503 words 31 min

    Ruohang FengPostgreSQLPG Admin

    PostgreSQL Logical Replication Deep Dive

    Logical Replication Logical Replication is a method of replicating data objects and their changes based on their replica identity (usually the primary key). The term logical replication contrasts with physical replication. Physical replication uses …

    Logical Replication Logical Replication is a method of replicating data objects and their changes based on their replica identity (usually the primary key). The term logical replication contrasts with physical replication. Physical replication uses …

  • PG Replica Identity Explained

    By Ruohang Feng In PGSQL 2202 words 11 min

    Ruohang FengPostgreSQLPG AdminPG Development

    PG Replica Identity Explained

    Introduction: DIY Logical Replication The concept of replica identity serves logical replication. The basic working principle of logical replication is to decode row-level INSERT/UPDATE/DELETE events from logical publication-related tables and …

    Introduction: DIY Logical Replication The concept of replica identity serves logical replication. The basic working principle of logical replication is to decode row-level INSERT/UPDATE/DELETE events from logical publication-related tables and …

  • Pigsty v0.7: Monitor-Only Deployments

    By Ruohang Feng In PIGSTY 270 words 2 min

    Ruohang FengPigstyPigsty

    Pigsty v0.7: Monitor-Only Deployments

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.7.0 Pigsty v0.7 focuses on plugging existing fleets into Pigsty’s observability stack. The new monitor-only flow lets you drop Pigsty dashboards onto databases that were provisioned …

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.7.0 Pigsty v0.7 focuses on plugging existing fleets into Pigsty’s observability stack. The new monitor-only flow lets you drop Pigsty dashboards onto databases that were provisioned …

  • A Methodology for Diagnosing PostgreSQL Slow Queries

    By Ruohang Feng In PGSQL 349 words 2 min

    Ruohang FengPostgreSQLPG AdminPerformance

    A Methodology for Diagnosing PostgreSQL Slow Queries

    “You can’t optimize what you can’t measure.” Slow queries hog connections, hold locks, block replication, trigger deadlocks, and waste resources. Every DBA must know how to find and fix them quickly. Traditional tools pg_stat_statements – essential …

    “You can’t optimize what you can’t measure.” Slow queries hog connections, hold locks, block replication, trigger deadlocks, and waste resources. Every DBA must know how to find and fix them quickly. Traditional tools pg_stat_statements – essential …

  • Incident-Report: Patroni Failure Due to Time Travel

    By Ruohang Feng In PGSQL 145 words 1 min

    Ruohang FengPostgreSQLPG AdminIncident

    Incident-Report: Patroni Failure Due to Time Travel

    Summary: Machine restarted due to failure, NTP service corrected PG time after PG startup, causing Patroni to fail to start. The failure information in Patroni is shown as follows: Process %s is not postmaster, too much difference between PID file …

    Summary: Machine restarted due to failure, NTP service corrected PG time after PG startup, causing Patroni to fail to start. The failure information in Patroni is shown as follows: Process %s is not postmaster, too much difference between PID file …

  • Pigsty v0.6: Provisioning Upgrades

    By Ruohang Feng In PIGSTY 202 words 1 min

    Ruohang FengPigstyPigsty

    Pigsty v0.6: Provisioning Upgrades

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.6.0 Pigsty v0.6 responds to user feedback with a redesigned provisioning path plus a monitoring stack that can sit beside any managed PG fleet—even a MyBase cluster built elsewhere. Bug …

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.6.0 Pigsty v0.6 responds to user feedback with a redesigned provisioning path plus a monitoring stack that can sit beside any managed PG fleet—even a MyBase cluster built elsewhere. Bug …

  • Urban Wandering: Guangzhou Observations

    By Ruohang Feng In Trips 1633 words 8 min

    Ruohang FengTravel

    Urban Wandering: Guangzhou Observations

    Taking advantage of attending the 2020 PostgreSQL China Conference, I toured Guangzhou for a day. A quite interesting place. Among the four first-tier cities, only Guangzhou remained unvisited. This time, leveraging the PG conference opportunity, I …

    Taking advantage of attending the 2020 PostgreSQL China Conference, I toured Guangzhou for a day. A quite interesting place. Among the four first-tier cities, only Guangzhou remained unvisited. This time, leveraging the PG conference opportunity, I …

  • Online Primary Key Column Type Change

    By Ruohang Feng In PGSQL 1169 words 6 min

    Ruohang FengPostgreSQLPG Admin

    Online Primary Key Column Type Change

    Author: Vonng (@Vonng) How to change primary key column types online, such as upgrading from INT to BIGINT, without affecting business operations? Suppose you have a table in PostgreSQL where you initially chose an INT primary key without much …

    Author: Vonng (@Vonng) How to change primary key column types online, such as upgrading from INT to BIGINT, without affecting business operations? Suppose you have a table in PostgreSQL where you initially chose an INT primary key without much …

  • New Year Pilgrimage: Yubeng Mountain Circuit

    By Ruohang Feng In Trips 1326 words 7 min

    Ruohang FengTravel

    New Year Pilgrimage: Yubeng Mountain Circuit

    The disaster-filled year 2020 required proper blessings. Completed the Meili inner circuit in 3 days - Sacred Waterfall, Sacred Lake, Ice Lake. Preface: As the saying goes: “If not going to paradise, go to Yubeng.” Going to Yubeng usually means …

    The disaster-filled year 2020 required proper blessings. Completed the Meili inner circuit in 3 days - Sacred Waterfall, Sacred Lake, Ice Lake. Preface: As the saying goes: “If not going to paradise, go to Yubeng.” Going to Yubeng usually means …

  • Farewell to Grandfather

    By Ruohang Feng In Miscs 2088 words 10 min

    Ruohang FengEssay

    Farewell to Grandfather

    Although 2020 was a year of many disasters, until grandfather’s death, I always thought we could somehow get by. The death of a close relative—this is the second time for me. First my father, then my grandfather. Humans appear so powerless before …

    Although 2020 was a year of many disasters, until grandfather’s death, I always thought we could somehow get by. The death of a close relative—this is the second time for me. First my father, then my grandfather. Humans appear so powerless before …

  • Pigsty v0.5: Declarative DB Templates

    By Ruohang Feng In PIGSTY 680 words 4 min

    Ruohang FengPigstyPigsty

    Pigsty v0.5: Declarative DB Templates

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.5.0 v0.5.0 Outline The official docs site (http://pigsty.cc/) is live. Database templating becomes fully declarative: define users, roles, databases, ACLs, extensions, and schemas in …

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.5.0 v0.5.0 Outline The official docs site (http://pigsty.cc/) is live. Database templating becomes fully declarative: define users, roles, databases, ACLs, extensions, and schemas in …

  • Pigsty v0.4: PG13 and Better Docs

    By Ruohang Feng In PIGSTY 167 words 1 min

    Ruohang FengPigstyPigsty

    Pigsty v0.4: PG13 and Better Docs

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.4.0 Pigsty v0.4 is our second public beta. The observability stack was rebuilt around Grafana 7.3, and ten curated dashboards became the default open-source payload. pg_exporter 0.3.1 …

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.4.0 Pigsty v0.4 is our second public beta. The observability stack was rebuilt around Grafana 7.3, and ten curated dashboards became the default open-source payload. pg_exporter 0.3.1 …

  • Golden Monitoring Metrics: Errors, Latency, Throughput, Saturation

    By Ruohang Feng In PGSQL 1235 words 6 min

    Ruohang FengPostgreSQLPG AdminMonitoring

    Golden Monitoring Metrics: Errors, Latency, Throughput, Saturation

    Preface Playing with databases and playing with cars have something in common - they both require frequently checking the dashboard. What are you doing staring at the dashboard? Looking at metrics. Why look at metrics? You need to understand the …

    Preface Playing with databases and playing with cars have something in common - they both require frequently checking the dashboard. What are you doing staring at the dashboard? Looking at metrics. Why look at metrics? You need to understand the …

  • Pigsty v0.3: First Public Beta

    By Ruohang Feng In PIGSTY 108 words 1 min

    Ruohang FengPigstyPigsty

    Pigsty v0.3: First Public Beta

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.3.0 Pigsty v0.3.0 is the very first public preview. It packages a lean observability stack plus a reproducible offline bundle so you can spin up a real PostgreSQL lab without touching …

    GitHub Release: https://github.com/pgsty/pigsty/releases/tag/v0.3.0 Pigsty v0.3.0 is the very first public preview. It packages a lean observability stack plus a reproducible offline bundle so you can spin up a real PostgreSQL lab without touching …

  • Paradise Found: Wusun Ancient Trail

    By Ruohang Feng In Trips 5380 words 26 min

    Ruohang FengTravel

    Paradise Found: Wusun Ancient Trail

    This National Day I trekked the Wusun Ancient Trail, crossing over the Tianshan Mountains to reach that Ili. Though over a week has passed, the memories linger - writing to commemorate this journey. TL;DR Too Long; Didn’t Read For videos, please …

    This National Day I trekked the Wusun Ancient Trail, crossing over the Tianshan Mountains to reach that Ili. Though over a week has passed, the memories linger - writing to commemorate this journey. TL;DR Too Long; Didn’t Read For videos, please …

  • Database Cluster Management Concepts and Entity Naming Conventions

    By Ruohang Feng In PGSQL 1497 words 8 min

    Ruohang FengPostgreSQLPG AdminArchitecture

    Database Cluster Management Concepts and Entity Naming Conventions

    Author: Vonng (@Vonng) “Once named, it can be spoken; once spoken, it can be acted upon.” Concepts and their naming are very important. Naming style reflects an engineer’s understanding of system architecture. Poorly defined concepts lead to …

    Author: Vonng (@Vonng) “Once named, it can be spoken; once spoken, it can be acted upon.” Concepts and their naming are very important. Naming style reflects an engineer’s understanding of system architecture. Poorly defined concepts lead to …

  • PostgreSQL's KPI

    By Ruohang Feng In PGSQL 3038 words 15 min

    Ruohang FengPostgreSQLPG AdminMonitoring

    PostgreSQL's KPI

    Managing databases is similar to managing people - both need KPIs (Key Performance Indicators). So what are database KPIs? This article introduces a way to measure PostgreSQL load: using a single horizontally comparable metric that is basically …

    Managing databases is similar to managing people - both need KPIs (Key Performance Indicators). So what are database KPIs? This article introduces a way to measure PostgreSQL load: using a single horizontally comparable metric that is basically …

  • Practical Cryptography Made Simple

    By Ruohang Feng In Miscs 1354 words 3 min

    Ruohang FengEssay

    Practical Cryptography Made Simple

    Original WeChat Article A classic problem in cryptography is how to transmit data securely and reliably through insecure channels. Protecting your chats and communications from eavesdropping, surveillance, and censorship. With just a computer at …

    Original WeChat Article A classic problem in cryptography is how to transmit data securely and reliably through insecure channels. Protecting your chats and communications from eavesdropping, surveillance, and censorship. With just a computer at …

  • Online PostgreSQL Column Type Migration

    By Ruohang Feng In PGSQL 786 words 4 min

    Ruohang FengPostgreSQLPG AdminMigration

    Online PostgreSQL Column Type Migration

    Scenario In the lifecycle of a database, there’s a common type of requirement: modifying column types. For example: Using INT as a primary key, only to discover that business is booming and the 2.1 billion limit of INT32 isn’t enough, wanting to …

    Scenario In the lifecycle of a database, there’s a common type of requirement: modifying column types. For example: Using INT as a primary key, only to discover that business is booming and the 2.1 billion limit of INT32 isn’t enough, wanting to …

  • Transaction Isolation Level Considerations

    By Ruohang Feng In PGSQL 2692 words 13 min

    Ruohang FengPostgreSQLPG Development

    Transaction Isolation Level Considerations

    PostgreSQL actually has only two transaction isolation levels: Read Committed and Serializable Basics The SQL standard defines four isolation levels, but PostgreSQL actually has only two transaction isolation levels: Read Committed and Serializable …

    PostgreSQL actually has only two transaction isolation levels: Read Committed and Serializable Basics The SQL standard defines four isolation levels, but PostgreSQL actually has only two transaction isolation levels: Read Committed and Serializable …

  • Frontend-Backend Communication Wire Protocol

    By Ruohang Feng In PGSQL 870 words 5 min

    Ruohang FengPostgreSQLPG DevelopmentPG Kernel

    Frontend-Backend Communication Wire Protocol

    Understanding the TCP protocol used for communication between PostgreSQL server and client Startup Phase The basic flow of the startup phase is as follows: Client sends a StartupMessage (F) to initiate connection request to server Payload includes …

    Understanding the TCP protocol used for communication between PostgreSQL server and client Startup Phase The basic flow of the startup phase is as follows: Client sends a StartupMessage (F) to initiate connection request to server Payload includes …

  • Incident: PostgreSQL Extension Installation Causes Connection Failure

    By Ruohang Feng In PGSQL 433 words 3 min

    Ruohang FengPostgreSQLPG AdminExtensionIncident

    Incident: PostgreSQL Extension Installation Causes Connection Failure

    Author: Vonng (@Vonng) Today encountered an interesting case where a customer reported database connection issues. The error was: psql: FATAL: could not load library "/export/servers/pgsql/lib/pg_hint_plan.so": …

    Author: Vonng (@Vonng) Today encountered an interesting case where a customer reported database connection issues. The error was: psql: FATAL: could not load library "/export/servers/pgsql/lib/pg_hint_plan.so": …

  • CDC Change Data Capture Mechanisms

    By Ruohang Feng In PGSQL 4557 words 22 min

    Ruohang FengPostgreSQLPG Development

    CDC Change Data Capture Mechanisms

    In actual production, we often need to synchronize database states to other places, such as synchronizing to data warehouses for analysis, to message queues for downstream consumption, or to caches to accelerate queries. Generally speaking, there are …

    In actual production, we often need to synchronize database states to other places, such as synchronizing to data warehouses for analysis, to message queues for downstream consumption, or to caches to accelerate queries. Generally speaking, there are …

  • Locks in PostgreSQL

    By Ruohang Feng In PGSQL 486 words 3 min

    Ruohang FengPostgreSQLPG DevelopmentPG Admin

    Locks in PostgreSQL

    PostgreSQL relies on snapshot isolation (SI) for concurrency and two-phase locking (2PL) as a supporting act. DML (SELECT/INSERT/UPDATE/DELETE) uses SSI; DDL (CREATE TABLE etc.) still uses 2PL. Understanding locks is essential when diagnosing …

    PostgreSQL relies on snapshot isolation (SI) for concurrency and two-phase locking (2PL) as a supporting act. DML (SELECT/INSERT/UPDATE/DELETE) uses SSI; DDL (CREATE TABLE etc.) still uses 2PL. Understanding locks is essential when diagnosing …

  • O(n2) Complexity of GIN Search

    By Ruohang Feng In PGSQL 673 words 4 min

    Ruohang FengPostgreSQLPG Development

    O(n2) Complexity of GIN Search

    When GIN indexes are used to search with very long keyword lists, performance degrades significantly. This article explains why GIN index keyword search has O(n^2) time complexity. Here is the detail of why that query have O(N^2) inside GIN …

    When GIN indexes are used to search with very long keyword lists, performance degrades significantly. This article explains why GIN index keyword search has O(n^2) time complexity. Here is the detail of why that query have O(N^2) inside GIN …

  • City Upon a Hill: California Road Trip

    By Ruohang Feng In Trips 437 words 3 min

    Ruohang FengTravel

    City Upon a Hill: California Road Trip

    Went on a business trip to America, worked one week and played one week. Road trip along Highway 1, Bay Area, Los Angeles, San Francisco, Yosemite. Thanks to my company, I went on a business trip to America for two weeks - one week working, one week …

    Went on a business trip to America, worked one week and played one week. Road trip along Highway 1, Bay Area, Los Angeles, San Francisco, Yosemite. Thanks to my company, I went on a business trip to America for two weeks - one week working, one week …

  • PostgreSQL Common Replication Topology Plans

    By Ruohang Feng In PGSQL 575 words 3 min

    Ruohang FengPostgreSQLPG AdminArchitecture

    PostgreSQL Common Replication Topology Plans

    Replication is one of the core issues in system architecture. Cluster Topology Suppose we use a standard 4-unit configuration: primary, synchronous replica, delayed backup, and remote replica, identified by letters M, S, O, R respectively. M: Master, …

    Replication is one of the core issues in system architecture. Cluster Topology Suppose we use a standard 4-unit configuration: primary, synchronous replica, delayed backup, and remote replica, identified by letters M, S, O, R respectively. M: Master, …

  • Warm Standby: Using pg_receivewal

    By Ruohang Feng In PGSQL 761 words 4 min

    Ruohang FengPostgreSQLPG AdminBackup

    Warm Standby: Using pg_receivewal

    Author: Vonng (@Vonng) Backup is the foundation of a DBA’s livelihood and one of the most critical tasks in database management. There are various types of backups, but the backups discussed here are all physical backups. Physical backups can …

    Author: Vonng (@Vonng) Backup is the foundation of a DBA’s livelihood and one of the most critical tasks in database management. There are various types of backups, but the backups discussed here are all physical backups. Physical backups can …

  • Is running postgres in docker a good idea?

    By Ruohang Feng In Database 2587 words 13 min

    Ruohang FengDatabaseContainersArchitecture

    Is running postgres in docker a good idea?

    For stateless app services, containers are an almost perfect devops solution. However, for stateful services like databases, it’s not so straightforward. Whether production databases should be containerized remains controversial. From a developer’s …

    For stateless app services, containers are an almost perfect devops solution. However, for stateful services like databases, it’s not so straightforward. Whether production databases should be containerized remains controversial. From a developer’s …

  • The Sorrow of the Internet

    By Ruohang Feng In Miscs 2855 words 14 min

    Ruohang FengEssay

    The Sorrow of the Internet

    In Understanding the Internet, I discussed my views on the internet. Today, let’s talk about the part I deliberately omitted: the setbacks the internet will face. Destiny It was the best of times, it was the worst of times; It was the age of wisdom, …

    In Understanding the Internet, I discussed my views on the internet. Today, let’s talk about the part I deliberately omitted: the setbacks the internet will face. Destiny It was the best of times, it was the worst of times; It was the age of wisdom, …

  • Understanding Time - Leap Years, Leap Seconds, Time and Time Zones

    By Ruohang Feng In Database 3208 words 7 min

    Ruohang FengPG DevelopmentDatabase

    Understanding Time - Leap Years, Leap Seconds, Time and Time Zones

    A few days ago, we encountered the quadrennial leap year February 29th. Every time this day comes around, some poorly written software experiences major failures. If you’re unlucky, this type of problem might take four years to surface. For example, …

    A few days ago, we encountered the quadrennial leap year February 29th. Every time this day comes around, some poorly written software experiences major failures. If you’re unlucky, this type of problem might take four years to surface. For example, …

  • Incident-Report: Connection-Pool Contamination Caused by pg_dump

    By Ruohang Feng In PGSQL 1232 words 6 min

    Ruohang FengPostgreSQLPG AdminIncident

    Incident-Report: Connection-Pool Contamination Caused by pg_dump

    PostgreSQL is great, but that doesn’t mean it’s Bug-Free. This time in the production environment, I encountered another very interesting case: a production incident caused by pg_dump. This is a very subtle bug triggered by Pgbouncer, search_path, …

    PostgreSQL is great, but that doesn’t mean it’s Bug-Free. This time in the production environment, I encountered another very interesting case: a production incident caused by pg_dump. This is a very subtle bug triggered by Pgbouncer, search_path, …

  • New Year Reflections

    By Ruohang Feng In Miscs 4681 words 22 min

    Ruohang FengEssay

    New Year Reflections

    This article may cause discomfort. Please read with caution. During this rare leisure time alone in the New Year, I write these random thoughts, writing wherever my mind wanders. I’ve always believed that choice is more important than effort: a …

    This article may cause discomfort. Please read with caution. During this rare leisure time alone in the New Year, I write these random thoughts, writing wherever my mind wanders. I’ve always believed that choice is more important than effort: a …

  • The Internet Winter

    By Ruohang Feng In Miscs 2195 words 11 min

    Ruohang FengEssay

    The Internet Winter

    It was the best of times, it was the worst of times; It was the age of wisdom, it was the age of foolishness; It was the epoch of belief, it was the epoch of incredulity; It was the season of Light, it was the season of Darkness; It was the spring …

    It was the best of times, it was the worst of times; It was the age of wisdom, it was the age of foolishness; It was the epoch of belief, it was the epoch of incredulity; It was the season of Light, it was the season of Darkness; It was the spring …

  • Knowledge of China's Administrative Divisions

    By Ruohang Feng In Miscs 2285 words 11 min

    Ruohang FengEssay

    Knowledge of China's Administrative Divisions

    China’s administrative divisions are divided into several levels. The constitution stipulates three levels, but there are actually five levels: the four-tier system of “province—region—county (district)—township,” which becomes five tiers when …

    China’s administrative divisions are divided into several levels. The constitution stipulates three levels, but there are actually five levels: the four-tier system of “province—region—county (district)—township,” which becomes five tiers when …

  • PostgreSQL Data Page Corruption Repair

    By Ruohang Feng In PGSQL 2725 words 13 min

    Ruohang FengPostgreSQLPG AdminIncident

    PostgreSQL Data Page Corruption Repair

    PostgreSQL is a very reliable database, but even the most reliable database will struggle when faced with unreliable hardware. This article introduces methods for dealing with data page corruption in PostgreSQL. The Initial Problem A statistics …

    PostgreSQL is a very reliable database, but even the most reliable database will struggle when faced with unreliable hardware. This article introduces methods for dealing with data page corruption in PostgreSQL. The Initial Problem A statistics …

  • Understanding the Internet

    By Ruohang Feng In Miscs 2342 words 5 min

    Ruohang FengEssay

    Understanding the Internet

    I used to think that the essence of the internet, the development of the internet industry, and the strategies of internet companies—these “lofty” matters should be pondered by government officials and corporate executives. As an internet …

    I used to think that the essence of the internet, the development of the internet industry, and the strategies of internet companies—these “lofty” matters should be pondered by government officials and corporate executives. As an internet …

  • Relation Bloat Monitoring and Management

    By Ruohang Feng In PGSQL 3167 words 15 min

    Ruohang FengPostgreSQLPG Admin

    Relation Bloat Monitoring and Management

    Author: Vonng (@Vonng) PostgreSQL uses MVCC as its primary concurrency control technology. While it has many benefits, it also brings other effects, such as relation bloat. Relation bloat (table and index) negatively impacts database performance and …

    Author: Vonng (@Vonng) PostgreSQL uses MVCC as its primary concurrency control technology. While it has many benefits, it also brings other effects, such as relation bloat. Relation bloat (table and index) negatively impacts database performance and …

  • Everest East Face: Gamma Gou Trekking

    By Ruohang Feng In Trips 2029 words 10 min

    Ruohang FengTravel

    Everest East Face: Gamma Gou Trekking

    This year’s National Day holiday was perfect - taking six days off could connect Mid-Autumn Festival with National Day for a 16-day consecutive break. I’ve visited most of China’s provinces, but Tibet remained unexplored. Seeing a Gamma Gou/Everest …

    This year’s National Day holiday was perfect - taking six days off could connect Mid-Autumn Festival with National Day for a 16-day consecutive break. I’ve visited most of China’s provinces, but Tibet remained unexplored. Seeing a Gamma Gou/Everest …

  • TimescaleDB Quick Start

    By Ruohang Feng In PGSQL 3993 words 19 min

    Ruohang FengPostgreSQLPG AdminExtension

    TimescaleDB Quick Start

    Official website: https://www.timescale.com Official documentation: https://docs.timescale.com/v0.9/main Github: https://github.com/timescale/timescaledb Why Use TimescaleDB What is Time-Series Data? We keep talking about what “time-series data” is, …

    Official website: https://www.timescale.com Official documentation: https://docs.timescale.com/v0.9/main Github: https://github.com/timescale/timescaledb Why Use TimescaleDB What is Time-Series Data? We keep talking about what “time-series data” is, …

  • Getting Started with PipelineDB

    By Ruohang Feng In PGSQL 207 words 1 min

    Ruohang FengPostgreSQLPG AdminExtension

    Getting Started with PipelineDB

    PipelineDB extends PostgreSQL with streaming primitives—continuous views over unbounded input. Although the upstream project was discontinued, the concepts remain useful. Install & configure PipelineDB ships as an extension. Install the RPM/DEB, then …

    PipelineDB extends PostgreSQL with streaming primitives—continuous views over unbounded input. Although the upstream project was discontinued, the concepts remain useful. Install & configure PipelineDB ships as an extension. Install the RPM/DEB, then …

  • Incident-Report: PostgreSQL Transaction ID Wraparound

    By Ruohang Feng In PGSQL 956 words 5 min

    Ruohang FengPostgreSQLPG AdminIncident

    Incident-Report: PostgreSQL Transaction ID Wraparound

    Encountered a transaction wraparound failure caused by disk bad blocks: Primary database (PostgreSQL 9.3) disk bad blocks caused VACUUM FREEZE execution failure on several tables. Unable to reclaim old transaction IDs, causing database transaction …

    Encountered a transaction wraparound failure caused by disk bad blocks: Primary database (PostgreSQL 9.3) disk bad blocks caused VACUUM FREEZE execution failure on several tables. Unable to reclaim old transaction IDs, causing database transaction …

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

    By Ruohang Feng In PGSQL 645 words 4 min

    Ruohang FengPostgreSQLPG AdminIncident

    Incident-Report: Integer Overflow from Rapid Sequence Number Consumption

    0x01 Overview Incident symptoms: A table using auto-increment columns had sequence numbers reach the integer limit, preventing writes. Discovered large gaps in auto-increment columns, with many sequence numbers consumed without corresponding …

    0x01 Overview Incident symptoms: A table using auto-increment columns had sequence numbers reach the integer limit, preventing writes. Discovered large gaps in auto-increment columns, with many sequence numbers consumed without corresponding …

  • Several Levels of Learning Knowledge

    By Ruohang Feng In Miscs 2835 words 6 min

    Ruohang FengEssay

    Several Levels of Learning Knowledge

    Original WeChat Article Levels of Knowledge When we say “learning knowledge,” what exactly are we talking about? When we say someone is “smart,” what exactly do we mean? Through observation and contemplation, we can divide the process of deepening …

    Original WeChat Article Levels of Knowledge When we say “learning knowledge,” what exactly are we talking about? When we say someone is “smart,” what exactly do we mean? Through observation and contemplation, we can divide the process of deepening …

  • PostgreSQL Trigger Usage Considerations

    By Ruohang Feng In PGSQL 1053 words 5 min

    Ruohang FengPostgreSQLPG Development

    PostgreSQL Trigger Usage Considerations

    Overview Trigger behavior overview Trigger classification Trigger functionality Trigger types Trigger firing Trigger creation Trigger modification Trigger queries Trigger performance Trigger Overview Trigger behavior overview: English, Chinese …

    Overview Trigger behavior overview Trigger classification Trigger functionality Trigger types Trigger firing Trigger creation Trigger modification Trigger queries Trigger performance Trigger Overview Trigger behavior overview: English, Chinese …

  • GeoIP Geographic Reverse Lookup Optimization

    By Ruohang Feng In PGSQL 1545 words 8 min

    Ruohang FengPostgreSQLPG DevelopmentExtensionGIS

    GeoIP Geographic Reverse Lookup Optimization

    Efficient implementation of IP geolocation lookups In application development, a ‘very common’ requirement is GeoIP conversion - converting source IP addresses from requests into corresponding geographic coordinates or administrative divisions …

    Efficient implementation of IP geolocation lookups In application development, a ‘very common’ requirement is GeoIP conversion - converting source IP addresses from requests into corresponding geographic coordinates or administrative divisions …

  • Understanding Character Encoding Principles

    By Ruohang Feng In Database 4715 words 10 min

    Ruohang FengPG DevelopmentDatabase

    Understanding Character Encoding Principles

    Programmers deal with Code (both programming code and encoding), and character encoding is the most fundamental type of encoding. The problem of how to represent characters using binary numbers - this character encoding problem is not as simple as it …

    Programmers deal with Code (both programming code and encoding), and character encoding is the most fundamental type of encoding. The problem of how to represent characters using binary numbers - this character encoding problem is not as simple as it …

  • Understanding Character Encoding

    By Ruohang Feng In Miscs 869 words 2 min

    Ruohang FengEssay

    Understanding Character Encoding

    WeChat original Programmers spend their lives with code—both source code and encodings. Representing text with bits is harder than it looks: character sets, comparators, normalization, locale rules, variable-length encodings, BOMs, surrogate pairs, …

    WeChat original Programmers spend their lives with code—both source code and encodings. Representing text with bits is harder than it looks: character sets, comparators, normalization, locale rules, variable-length encodings, BOMs, surrogate pairs, …

  • PostgreSQL Development Convention (2018 Edition)

    By Ruohang Feng In PGSQL 3431 words 17 min

    Ruohang FengPostgreSQLPG DevelopmentSoftware Engineering

    PostgreSQL Development Convention (2018 Edition)

    0x00 Background Without rules, there can be no order. PostgreSQL is extremely powerful, but to use PostgreSQL well requires coordinated effort from backend developers, operations teams, and DBAs. This article compiles a development specification …

    0x00 Background Without rules, there can be no order. PostgreSQL is extremely powerful, but to use PostgreSQL well requires coordinated effort from backend developers, operations teams, and DBAs. This article compiles a development specification …

  • Concurrency Anomalies Explained

    By Ruohang Feng In Database 6088 words 29 min

    Ruohang FengDatabaseTransactionsPG Kernel

    Concurrency Anomalies Explained

    Concurrent programs are hard to write correctly and even harder to write well. Many programmers haven’t truly figured out these problems - they just dump them all on the database. Concurrency anomalies aren’t just theoretical problems: these …

    Concurrent programs are hard to write correctly and even harder to write well. Many programmers haven’t truly figured out these problems - they just dump them all on the database. Concurrency anomalies aren’t just theoretical problems: these …

  • What Are PostgreSQL's Advantages?

    By Ruohang Feng In PGSQL 2148 words 11 min

    Ruohang FengPostgreSQLPG Ecosystem

    What Are PostgreSQL's Advantages?

    PostgreSQL’s slogan is “The world’s most advanced open source relational database”, but I think this slogan isn’t catchy enough, and it looks like it’s targeting MySQL’s “The world’s most popular open source relational database” slogan, which seems …

    PostgreSQL’s slogan is “The world’s most advanced open source relational database”, but I think this slogan isn’t catchy enough, and it looks like it’s targeting MySQL’s “The world’s most popular open source relational database” slogan, which seems …

  • Blockchain and Distributed Databases

    By Ruohang Feng In Database 537 words 3 min

    Ruohang FengDatabaseDistributed Systems

    Blockchain and Distributed Databases

    The essence, intended functionality, and evolutionary direction of blockchain is distributed databases. To be precise, it’s a Byzantine Fault Tolerant (resistant to malicious node attacks) distributed (leaderless replication) database. If this …

    The essence, intended functionality, and evolutionary direction of blockchain is distributed databases. To be precise, it’s a Byzantine Fault Tolerant (resistant to malicious node attacks) distributed (leaderless replication) database. If this …

  • KNN Ultimate Optimization: From RDS to PostGIS

    By Ruohang Feng In PGSQL 4090 words 20 min

    Ruohang FengPostgreSQLPG DevelopmentMachine LearningGIS

    KNN Ultimate Optimization: From RDS to PostGIS

    Flexibly applying database functionality can easily achieve a 30,000-fold performance improvement in GIS selection scenarios. Level Method Performance/Time(ms) Maintainability/Reliability Notes 1 Brute Force 30,000 - Simple form 2 Coordinate Index 35 …

    Flexibly applying database functionality can easily achieve a 30,000-fold performance improvement in GIS selection scenarios. Level Method Performance/Time(ms) Maintainability/Reliability Notes 1 Brute Force 30,000 - Simple form 2 Coordinate Index 35 …

  • Efficient Administrative Region Lookup with PostGIS

    By Ruohang Feng In PGSQL 2166 words 11 min

    Ruohang FengPostgreSQLPG DevelopmentGIS

    Efficient Administrative Region Lookup with PostGIS

    Author: Vonng (@Vonng) Original WeChat article In application development, we often need to solve this problem: determining administrative regions based on user coordinates. We collect coordinates like 28°00'00"N 100°00'00.000"E, but what we …

    Author: Vonng (@Vonng) Original WeChat article In application development, we often need to solve this problem: determining administrative regions based on user coordinates. We collect coordinates like 28°00'00"N 100°00'00.000"E, but what we …

  • Monitoring Table Size in PostgreSQL

    By Ruohang Feng In PGSQL 903 words 5 min

    Ruohang FengPostgreSQLPG AdminMonitoring

    Monitoring Table Size in PostgreSQL

    Table Space Layout In the broad sense, a Table includes two parts: the main table and TOAST table: Main table: stores the relation’s own data, i.e., the narrow sense relation, relkind='r'. TOAST table: corresponds one-to-one with the main table, …

    Table Space Layout In the broad sense, a Table includes two parts: the main table and TOAST table: Main table: stores the relation’s own data, i.e., the narrow sense relation, relkind='r'. TOAST table: corresponds one-to-one with the main table, …

  • Consistency: An Overloaded Term

    By Ruohang Feng In Database 651 words 4 min

    Ruohang FengDatabaseDistributed SystemsTransactions

    Consistency: An Overloaded Term

    The term consistency is heavily overloaded, representing different things in different contexts and situations: In the context of transactions, such as the C in ACID, it refers to the usual Consistency In the context of distributed systems, such as …

    The term consistency is heavily overloaded, representing different things in different contexts and situations: In the context of transactions, such as the C in ACID, it refers to the usual Consistency In the context of distributed systems, such as …

  • Why Study Database Principles

    By Ruohang Feng In Database 2132 words 11 min

    Ruohang FengDatabaseCareer

    Why Study Database Principles

    Our school offers a database systems principles course. But I’m still confused. From the first few classes, the teacher started with a bunch of mind-numbing terms and concepts. I thought knowing “how to design and build tables” and “how to perform …

    Our school offers a database systems principles course. But I’m still confused. From the first few classes, the teacher started with a bunch of mind-numbing terms and concepts. I thought knowing “how to design and build tables” and “how to perform …

  • PgAdmin Installation and Configuration

    By Ruohang Feng In PGSQL 216 words 2 min

    Ruohang FengPostgreSQLPG AdminTools

    PgAdmin Installation and Configuration

    PgAdmin4 Installation and Configuration PgAdmin is a GUI designed specifically for PostgreSQL. It works very well. It can run as either a local GUI program or a web service. Since PgAdmin’s GUI components have display issues on Retina screens, this …

    PgAdmin4 Installation and Configuration PgAdmin is a GUI designed specifically for PostgreSQL. It works very well. It can run as either a local GUI program or a web service. Since PgAdmin’s GUI components have display issues on Retina screens, this …

  • Incident-Report: Uneven Load Avalanche

    By Ruohang Feng In PGSQL 1318 words 7 min

    Ruohang FengPostgreSQLPG AdminIncident

    Incident-Report: Uneven Load Avalanche

    Author: Vonng (@Vonng) Recently there was a perplexing incident where a database had half its data volume and load migrated away. Everything else remained unchanged, and it was fine before. The pressure decreased, yet it fell into a near-death state …

    Author: Vonng (@Vonng) Recently there was a perplexing incident where a database had half its data volume and load migrated away. Everything else remained unchanged, and it was fine before. The pressure decreased, yet it fell into a near-death state …

  • Implementing Mutual Exclusion Constraints with Exclude

    By Ruohang Feng In PGSQL 850 words 4 min

    Ruohang FengPostgreSQLPG Development

    Implementing Mutual Exclusion Constraints with Exclude

    Exclude constraint is a PostgreSQL extension that can implement more advanced and sophisticated database constraints. Introduction Data integrity is extremely important, but data integrity guaranteed by applications isn’t always reliable: humans make …

    Exclude constraint is a PostgreSQL extension that can implement more advanced and sophisticated database constraints. Introduction Data integrity is extremely important, but data integrity guaranteed by applications isn’t always reliable: humans make …

  • Function Volatility Classification Levels

    By Ruohang Feng In PGSQL 638 words 3 min

    Ruohang FengPostgreSQLPG Development

    Function Volatility Classification Levels

    PostgreSQL functions have three volatility levels by default. Proper use can significantly improve performance. Core Differences VOLATILE: Has side effects, cannot be optimized. STABLE: Executes database queries. IMMUTABLE: Pure function, execution …

    PostgreSQL functions have three volatility levels by default. Proper use can significantly improve performance. Core Differences VOLATILE: Has side effects, cannot be optimized. STABLE: Executes database queries. IMMUTABLE: Pure function, execution …

  • Distinct On: Remove Duplicate Data

    By Ruohang Feng In PGSQL 553 words 3 min

    Ruohang FengPostgreSQLPG Development

    Distinct On: Remove Duplicate Data

    Distinct On is a unique syntax provided by PostgreSQL that can efficiently solve typical query problems, for example, quickly finding records with maximum/minimum values within groups. Introduction Finding records with maximum/minimum values within …

    Distinct On is a unique syntax provided by PostgreSQL that can efficiently solve typical query problems, for example, quickly finding records with maximum/minimum values within groups. Introduction Finding records with maximum/minimum values within …

  • PostgreSQL Routine Maintenance

    By Ruohang Feng In PGSQL 126 words 1 min

    Ruohang FengPostgreSQLPG Admin

    PostgreSQL Routine Maintenance

    Cars need oil changes, databases need maintenance. Maintenance Tasks in PG For PG, there are three important maintenance tasks: backup, repack, vacuum Backup: The most important routine work, a lifeline. Create base backups Archive incremental WAL …

    Cars need oil changes, databases need maintenance. Maintenance Tasks in PG For PG, there are three important maintenance tasks: backup, repack, vacuum Backup: The most important routine work, a lifeline. Create base backups Archive incremental WAL …

  • Backup and Recovery Methods Overview

    By Ruohang Feng In PGSQL 3982 words 19 min

    Ruohang FengPostgreSQLPG AdminBackup

    Backup and Recovery Methods Overview

    Author: Vonng (@Vonng) Backup is the foundation of a DBA’s livelihood. With backups, there’s no need to panic. There are three forms of backup: SQL dumps, file system backups, and continuous archiving. 1. SQL Dumps The idea behind the SQL dump …

    Author: Vonng (@Vonng) Backup is the foundation of a DBA’s livelihood. With backups, there’s no need to panic. There are three forms of backup: SQL dumps, file system backups, and continuous archiving. 1. SQL Dumps The idea behind the SQL dump …

  • Pgbouncer Quick Start

    By Ruohang Feng In PGSQL 2876 words 14 min

    Ruohang FengPostgreSQLPG Admin

    Pgbouncer Quick Start

    Pgbouncer is a lightweight database connection pool. Synopsis pgbouncer [-d][-R][-v][-u user] <pgbouncer.ini> pgbouncer -V|-h Description pgbouncer is a PostgreSQL connection pooler. Any target application can connect to pgbouncer as if it were a …

    Pgbouncer is a lightweight database connection pool. Synopsis pgbouncer [-d][-R][-v][-u user] <pgbouncer.ini> pgbouncer -V|-h Description pgbouncer is a PostgreSQL connection pooler. Any target application can connect to pgbouncer as if it were a …

  • PgBackRest2 Documentation

    By Ruohang Feng In PGSQL 3109 words 15 min

    Ruohang FengPostgreSQLPG AdminBackup

    PgBackRest2 Documentation

    pgBackRest homepage: http://pgbackrest.org pgBackRest Github homepage: https://github.com/pgbackrest/pgbackrest Preface pgBackRest aims to provide a simple, reliable, easily scalable PostgreSQL backup and recovery system. pgBackRest doesn’t depend on …

    pgBackRest homepage: http://pgbackrest.org pgBackRest Github homepage: https://github.com/pgbackrest/pgbackrest Preface pgBackRest aims to provide a simple, reliable, easily scalable PostgreSQL backup and recovery system. pgBackRest doesn’t depend on …

  • Changing Engines Mid-Flight — PostgreSQL Zero-Downtime Data Migration

    By Ruohang Feng In PGSQL 673 words 4 min

    Ruohang FengPostgreSQLPG AdminMigration

    Changing Engines Mid-Flight — PostgreSQL Zero-Downtime Data Migration

    Data migration typically involves stopping services for updates. Zero-downtime data migration is a relatively advanced operation. Zero-downtime data migration can essentially be viewed as consisting of three operations: Replication: Logical …

    Data migration typically involves stopping services for updates. Zero-downtime data migration is a relatively advanced operation. Zero-downtime data migration can essentially be viewed as consisting of three operations: Replication: Logical …

  • Using sysbench to Test PostgreSQL Performance

    By Ruohang Feng In PGSQL 298 words 2 min

    Ruohang FengPostgreSQLPG AdminPerformance

    Using sysbench to Test PostgreSQL Performance

    sysbench homepage: https://github.com/akopytov/sysbench Installation Binary installation - on Mac, use brew to install sysbench: brew install sysbench --with-postgresql Source compilation (CentOS): yum -y install make automake libtool pkgconfig …

    sysbench homepage: https://github.com/akopytov/sysbench Installation Binary installation - on Mac, use brew to install sysbench: brew install sysbench --with-postgresql Source compilation (CentOS): yum -y install make automake libtool pkgconfig …

  • Testing Disk Performance with FIO

    By Ruohang Feng In PGSQL 335 words 2 min

    Ruohang FengPostgreSQLPG AdminPerformance

    Testing Disk Performance with FIO

    Author: Vonng FIO is an excellent disk performance testing tool. You can test disk read/write performance using the following commands. fio --filename=/tmp/fio.data \ -direct=1 \ -iodepth=32 \ -rw=randrw \ --rwmixread=80 \ -bs=4k \ -size=1G \ …

    Author: Vonng FIO is an excellent disk performance testing tool. You can test disk read/write performance using the following commands. fio --filename=/tmp/fio.data \ -direct=1 \ -iodepth=32 \ -rw=randrw \ --rwmixread=80 \ -bs=4k \ -size=1G \ …

  • PostgreSQL Server Log Regular Configuration

    By Ruohang Feng In PGSQL 654 words 4 min

    Ruohang FengPostgreSQLPG AdminMonitoring

    PostgreSQL Server Log Regular Configuration

    It’s recommended to configure PostgreSQL’s log format as CSV for easy analysis, and it can be directly imported into PostgreSQL data tables. Log-Related Configuration Items log_destination ='csvlog' logging_collector =on log_directory ='log' …

    It’s recommended to configure PostgreSQL’s log format as CSV for easy analysis, and it can be directly imported into PostgreSQL data tables. Log-Related Configuration Items log_destination ='csvlog' logging_collector =on log_directory ='log' …

  • Finding Unused Indexes

    By Ruohang Feng In PGSQL 373 words 2 min

    Ruohang FengPostgreSQLPG Admin

    Finding Unused Indexes

    Author: Vonng Indexes are useful, but they’re not free. Unused indexes are a waste. Use the following SQL to identify unused indexes: First, exclude indexes used to implement constraints (can’t be dropped) Expression indexes (containing field 0 in …

    Author: Vonng Indexes are useful, but they’re not free. Unused indexes are a waste. Use the following SQL to identify unused indexes: First, exclude indexes used to implement constraints (can’t be dropped) Expression indexes (containing field 0 in …

  • Batch Configure SSH Passwordless Login

    By Ruohang Feng In PGSQL 292 words 2 min

    Ruohang FengPostgreSQLPG Admin

    Batch Configure SSH Passwordless Login

    Configuring SSH is fundamental operations work - sometimes the basics need revisiting. Generate Public-Private Key Pairs Ideally, everything should use public-private key authentication for passwordless direct connection from local to all database …

    Configuring SSH is fundamental operations work - sometimes the basics need revisiting. Generate Public-Private Key Pairs Ideally, everything should use public-private key authentication for passwordless direct connection from local to all database …

  • Wireshark Packet Capture Protocol Analysis

    By Ruohang Feng In PGSQL 979 words 5 min

    Ruohang FengPostgreSQLPG AdminTools

    Wireshark Packet Capture Protocol Analysis

    Wireshark is a very useful tool, especially suitable for analyzing network protocols. Here’s a simple introduction to using Wireshark for packet capture and PostgreSQL protocol analysis. Assuming debugging local PostgreSQL instance: 127.0.0.1:5432 …

    Wireshark is a very useful tool, especially suitable for analyzing network protocols. Here’s a simple introduction to using Wireshark for packet capture and PostgreSQL protocol analysis. Assuming debugging local PostgreSQL instance: 127.0.0.1:5432 …

  • The Versatile file_fdw — Reading System Information from Your Database

    By Ruohang Feng In PGSQL 842 words 4 min

    Ruohang FengPostgreSQLPG AdminExtension

    The Versatile file_fdw — Reading System Information from Your Database

    Author: Vonng PostgreSQL is the most advanced open-source database, and one of its killer features is FDW: Foreign Data Wrapper. Through FDW, users can access various external data sources from Postgres in a unified manner. file_fdw is one of the …

    Author: Vonng PostgreSQL is the most advanced open-source database, and one of its killer features is FDW: Foreign Data Wrapper. Through FDW, users can access various external data sources from Postgres in a unified manner. file_fdw is one of the …

  • Shangri-La: Luoke Line Trekking Journal

    By Ruohang Feng In Trips 1719 words 9 min

    Ruohang FengTravel

    Shangri-La: Luoke Line Trekking Journal

    Solo heavy trekking on the Luoke Line, completing a 6-day route in three and a half days - nearly died on the mountain. After anticipating this for half a year, the Luoke Line trek is finally complete. Still feeling a bit surreal. On the last day in …

    Solo heavy trekking on the Luoke Line, completing a 6-day route in three and a half days - nearly died on the mountain. After anticipating this for half a year, the Luoke Line trek is finally complete. Still feeling a bit surreal. On the last day in …

  • Installing PostGIS from Source

    By Ruohang Feng In PGSQL 608 words 3 min

    Ruohang FengPostgreSQLPG AdminExtension

    Installing PostGIS from Source

    Strongly recommend using yum / apt commands to install PostGIS from official PostgreSQL binary repositories. Reference: …

    Strongly recommend using yum / apt commands to install PostGIS from official PostgreSQL binary repositories. Reference: …

  • Common Linux Statistics CLI Tools

    By Ruohang Feng In PGSQL 2358 words 12 min

    Ruohang FengPostgreSQLPG AdminTools

    Common Linux Statistics CLI Tools

    top free vmstat iostat top Display Linux tasks Summary Press space or enter to force refresh Use h to open help Use l,t,m to collapse summary sections Use d to modify refresh interval Use z to enable color highlighting Use u to list processes for …

    top free vmstat iostat top Display Linux tasks Summary Press space or enter to force refresh Use h to open help Use l,t,m to collapse summary sections Use d to modify refresh interval Use z to enable color highlighting Use u to list processes for …

  • Go Database Tutorial: database/sql

    By Ruohang Feng In PGSQL 4213 words 20 min

    Ruohang FengPostgreSQLSoftware Engineering

    Go Database Tutorial: database/sql

    The conventional way Go uses SQL and SQL-like databases is through the standard library database/sql. This is a generic abstraction for relational databases that provides a standard, lightweight, row-oriented interface. However, the documentation for …

    The conventional way Go uses SQL and SQL-like databases is through the standard library database/sql. This is a generic abstraction for relational databases that provides a standard, lightweight, row-oriented interface. However, the documentation for …

  • Implementing Cache Synchronization with Go and PostgreSQL

    By Ruohang Feng In PGSQL 1226 words 6 min

    Ruohang FengPostgreSQLPG Development

    Implementing Cache Synchronization with Go and PostgreSQL

    Parallel and Hierarchy are the two great principles of architectural design, and caching is the embodiment of Hierarchy in the IO domain. Implementing caching mechanisms in single-threaded scenarios can be surprisingly simple, but it’s hard to …

    Parallel and Hierarchy are the two great principles of architectural design, and caching is the embodiment of Hierarchy in the IO domain. Implementing caching mechanisms in single-threaded scenarios can be surprisingly simple, but it’s hard to …

  • Auditing Data Changes with Triggers

    By Ruohang Feng In PGSQL 477 words 3 min

    Ruohang FengPostgreSQLPG Development

    Auditing Data Changes with Triggers

    Author: Vonng (@Vonng) Sometimes we want to record important metadata changes for audit purposes. PostgreSQL triggers can conveniently solve this need automatically. -- Create an audit-specific schema and revoke all non-superuser privileges DROP …

    Author: Vonng (@Vonng) Sometimes we want to record important metadata changes for audit purposes. PostgreSQL triggers can conveniently solve this need automatically. -- Create an audit-specific schema and revoke all non-superuser privileges DROP …

  • Basic Principles of Neural Networks

    By Ruohang Feng In AI 4461 words 21 min

    Ruohang FengAI

    Basic Principles of Neural Networks

    Neural networks are inspired by how the brain works and can be used to solve general learning problems. This article introduces the basic principles and practice of neural networks. Neural Network Representation Neuron Model Neural networks are …

    Neural networks are inspired by how the brain works and can be used to solve general learning problems. This article introduces the basic principles and practice of neural networks. Neural Network Representation Neuron Model Neural networks are …

  • Statistics Fundamentals: Descriptive Statistics

    By Ruohang Feng In AI 5766 words 28 min

    Ruohang FengAI

    Statistics Fundamentals: Descriptive Statistics

    Statistical analysis is divided into two fields: descriptive statistics and inferential statistics. Descriptive Statistics is the technology for describing or characterizing existing data and is the most fundamental part of statistics. 1. Statistics …

    Statistical analysis is divided into two fields: descriptive statistics and inferential statistics. Descriptive Statistics is the technology for describing or characterizing existing data and is the most fundamental part of statistics. 1. Statistics …

  • Inferential Statistics: The Past and Present of p-values

    By Ruohang Feng In AI 1644 words 8 min

    Ruohang FengAI

    Inferential Statistics: The Past and Present of p-values

    The core of inferential statistics lies in hypothesis testing. The basic logic is based on an important argument from philosophy of science: universal propositions can only be falsified, not proven. The reasoning is simple: individual cases cannot …

    The core of inferential statistics lies in hypothesis testing. The basic logic is based on an important argument from philosophy of science: universal propositions can only be falsified, not proven. The reasoning is simple: individual cases cannot …

  • Building an ItemCF Recommender in Pure SQL

    By Ruohang Feng In PGSQL 408 words 2 min

    Ruohang FengPostgreSQLPG DevelopmentMachine Learning

    Building an ItemCF Recommender in Pure SQL

    Everyone knows “item-based collaborative filtering” (ItemCF): Amazon recommendations, YouTube watch-next, etc. Here’s how to implement it in PostgreSQL using the MovieLens dataset. No Python, just SQL. Theory in one minute ItemCF recommends items …

    Everyone knows “item-based collaborative filtering” (ItemCF): Amazon recommendations, YouTube watch-next, etc. Here’s how to implement it in PostgreSQL using the MovieLens dataset. No Python, just SQL. Theory in one minute ItemCF recommends items …

  • Basic Concepts of Probability Theory

    By Ruohang Feng In AI 1913 words 9 min

    Ruohang FengAI

    Basic Concepts of Probability Theory

    1. Set Theory Sample space and sample points are undefined basic concepts in probability theory, like the concepts of points and lines in geometry. Definition: Event Event: An event is a set of sample points. $A=0$ means event A contains no sample …

    1. Set Theory Sample space and sample points are undefined basic concepts in probability theory, like the concepts of points and lines in geometry. Definition: Event Event: An event is a set of sample points. $A=0$ means event A contains no sample …

  • Starting from /0: Understanding Errors and Exceptions

    By Ruohang Feng In Miscs 2138 words 11 min

    Ruohang FengEssay

    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

    By Ruohang Feng In PGSQL 1678 words 8 min

    Ruohang FengPostgreSQLPG DevelopmentArchitecture

    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

    By Ruohang Feng In Miscs 2059 words 10 min

    Ruohang FengEssay

    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

    By Ruohang Feng In Trips 764 words 4 min

    Ruohang FengTravel

    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

    By Ruohang Feng In Miscs 3592 words 17 min

    Ruohang FengEssay

    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

    By Ruohang Feng In PGSQL 699 words 4 min

    Ruohang FengPostgreSQLPG AdminExtension

    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

    By Ruohang Feng In AI 1357 words 7 min

    Ruohang FengAI

    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

    By Ruohang Feng In Miscs 1813 words 9 min

    Ruohang FengEssay

    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

    By Ruohang Feng In Miscs 1620 words 8 min

    Ruohang FengEssay

    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

    By Ruohang Feng In Miscs 2622 words 13 min

    Ruohang FengEssay

    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

    By Ruohang Feng In Miscs 178 words 1 min

    Ruohang FengEssay

    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

    By Ruohang Feng In AI 1070 words 6 min

    Ruohang FengAI

    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

    By Ruohang Feng In Miscs 498 words 3 min

    Ruohang FengEssay

    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

    By Ruohang Feng In Miscs 2104 words 10 min

    Ruohang FengEssay

    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

    By Ruohang Feng In Miscs 2444 words 5 min

    Ruohang FengEssay

    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

    By Ruohang Feng In Miscs 1551 words 8 min

    Ruohang FengEssay

    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

    By Ruohang Feng In Miscs 766 words 4 min

    Ruohang FengEssay

    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?

    By Ruohang Feng In Miscs 1532 words 8 min

    Ruohang FengEssay

    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

    By Ruohang Feng In AI 2613 words 13 min

    Ruohang FengAI

    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

    By Ruohang Feng In Miscs 2458 words 12 min

    Ruohang FengEssay

    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 …