<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Database-Internals on Tech News Feed</title>
    <link>https://news.dhphong.com/tags/database-internals/</link>
    <description>Recent content in Database-Internals on Tech News Feed</description>
    <generator>Hugo -- 0.131.0</generator>
    <language>vi</language>
    <lastBuildDate>Sun, 19 Apr 2026 07:05:00 +0700</lastBuildDate>
    <atom:link href="https://news.dhphong.com/tags/database-internals/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[Hacker News] A story about how I dug into the PostgreSQL sources to write my own WAL receiver</title>
      <link>https://news.dhphong.com/posts/2026-04-19-postgresql-wal-receiver-source-code/</link>
      <pubDate>Sun, 19 Apr 2026 07:05:00 +0700</pubDate>
      <guid>https://news.dhphong.com/posts/2026-04-19-postgresql-wal-receiver-source-code/</guid>
      <description>Nguồn: medium.com/@mailbox.sq7
Tóm tắt Bài viết mô tả hành trình của một kỹ sư từ câu hỏi đơn giản &amp;ldquo;pg_receivewal hoạt động như thế nào?&amp;rdquo; đến việc tự viết WAL receiver từ scratch bằng cách đọc trực tiếp PostgreSQL source code. WAL (Write-Ahead Log) là cơ chế durability và replication cốt lõi của PostgreSQL: mọi thay đổi đều được ghi vào WAL trước khi apply vào heap files.
Tác giả giải thích streaming replication protocol mà PostgreSQL expose qua libpq: client kết nối với role REPLICATION, gửi START_REPLICATION command, sau đó nhận stream các XLogData message chứa WAL segments.</description>
    </item>
  </channel>
</rss>
