<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>PGStone</title><link>https://pg-internal.com</link><description>道阻且长,行则将至</description><copyright>PGStone</copyright><docs>http://www.rssboard.org/rss-specification</docs><generator>python-feedgen</generator><image><url>https://avatars.githubusercontent.com/u/5057571?s=96&amp;v=4</url><title>avatar</title><link>https://pg-internal.com</link></image><lastBuildDate>Thu, 06 Aug 2026 14:43:38 +0000</lastBuildDate><managingEditor>PGStone</managingEditor><ttl>60</ttl><webMaster>PGStone</webMaster><item><title>深入理解 PostgreSQL Memory Context (2)</title><link>https://pg-internal.com/post/shen-ru-li-jie-PostgreSQL-Memory-Context-2.html</link><description>七、超大内存分配策略

7.1 要点

AllocSet 的 maxBlockSize (8MB) 并不是单次分配的上限。</description><guid isPermaLink="true">https://pg-internal.com/post/shen-ru-li-jie-PostgreSQL-Memory-Context-2.html</guid><pubDate>Mon, 20 Apr 2026 05:50:35 +0000</pubDate></item><item><title>深入理解 PostgreSQL Memory Context (1)</title><link>https://pg-internal.com/post/shen-ru-li-jie-PostgreSQL-Memory-Context-1.html</link><description>之前分析了pg的共享缓存管理原理，这次分析一下私有内存的管理：memory context。</description><guid isPermaLink="true">https://pg-internal.com/post/shen-ru-li-jie-PostgreSQL-Memory-Context-1.html</guid><pubDate>Mon, 20 Apr 2026 05:44:52 +0000</pubDate></item><item><title>PostgreSQL Ring  Buffer 机制详解</title><link>https://pg-internal.com/post/PostgreSQL-Ring-Buffer-ji-zhi-xiang-jie.html</link><description>1. 概述

1.1 什么是 Buffer Ring

PostgreSQL 的 Ring Buffer 是一种**后端私有的缓冲区访问策略**（Buffer Access Strategy），用于优化特定场景下的缓冲区使用。</description><guid isPermaLink="true">https://pg-internal.com/post/PostgreSQL-Ring-Buffer-ji-zhi-xiang-jie.html</guid><pubDate>Tue, 03 Feb 2026 11:53:38 +0000</pubDate></item><item><title>深入理解 postgresql buffer usage_count</title><link>https://pg-internal.com/post/shen-ru-li-jie-postgresql-buffer-usage_count.html</link><description>1. 概述

`usagecount`（使用计数）是 PostgreSQL 缓冲区管理中实现**时钟扫描（Clock Sweep）算法**的核心数据结构。</description><guid isPermaLink="true">https://pg-internal.com/post/shen-ru-li-jie-postgresql-buffer-usage_count.html</guid><pubDate>Mon, 26 Jan 2026 11:22:13 +0000</pubDate></item><item><title>深入理解PostgreSQL_Buffer_Pin机制</title><link>https://pg-internal.com/post/shen-ru-li-jie-PostgreSQL_Buffer_Pin-ji-zhi.html</link><description>一、Buffer Pin 的本质：三个字——'不准动'

1.1 核心定义

**Pin**（钉住）的含义非常简单：

只要有进程对某个 Buffer 持有 Pin，这个 Buffer 就**绝对不会**被淘汰替换。</description><guid isPermaLink="true">https://pg-internal.com/post/shen-ru-li-jie-PostgreSQL_Buffer_Pin-ji-zhi.html</guid><pubDate>Sun, 11 Jan 2026 14:37:15 +0000</pubDate></item><item><title>深入探索 PostgreSQL 18 的新特性</title><link>https://pg-internal.com/post/shen-ru-tan-suo-PostgreSQL-18-de-xin-te-xing.html</link><description>译自：https://xata.io/blog/going-down-the-rabbit-hole-of-postgres-18-features

部分内容略作修改

上周，PostgreSQL 18 已被标记为稳定版本。</description><guid isPermaLink="true">https://pg-internal.com/post/shen-ru-tan-suo-PostgreSQL-18-de-xin-te-xing.html</guid><pubDate>Thu, 16 Oct 2025 08:42:17 +0000</pubDate></item><item><title>pg_rewind为什么需要开启 wal_log_hins</title><link>https://pg-internal.com/post/pg_rewind-wei-shen-me-xu-yao-kai-qi-wal_log_hins.html</link><description>一、`wal_log_hints`参数作用

（一）Hint bits机制概述

在PostgreSQL中，Hint bits是一种用于优化性能的重要机制，它存储在元组（tuple）头部。</description><guid isPermaLink="true">https://pg-internal.com/post/pg_rewind-wei-shen-me-xu-yao-kai-qi-wal_log_hins.html</guid><pubDate>Fri, 16 May 2025 07:52:02 +0000</pubDate></item><item><title>PG参数autovacuum_naptime解析</title><link>https://pg-internal.com/post/PG-can-shu-autovacuum_naptime-jie-xi.html</link><description>PG autovacuum_naptime 介绍

autovacuum_naptime 参数官方文档描述如下：

```yaml
Specifies the minimum delay between autovacuum runs on...</description><guid isPermaLink="true">https://pg-internal.com/post/PG-can-shu-autovacuum_naptime-jie-xi.html</guid><pubDate>Fri, 07 Mar 2025 09:42:34 +0000</pubDate></item><item><title>PG参数maintenance_work_mem解析</title><link>https://pg-internal.com/post/PG-can-shu-maintenance_work_mem-jie-xi.html</link><description>PG maintenance_work_mem介绍

PG 垃圾回收有关的内存参数是maintenance_work_mem或autovacuum_work_mem，如果没有设置autovacuum_work_mem，则使用maintena...</description><guid isPermaLink="true">https://pg-internal.com/post/PG-can-shu-maintenance_work_mem-jie-xi.html</guid><pubDate>Thu, 20 Feb 2025 07:25:23 +0000</pubDate></item><item><title>处理 PostgreSQL 错误 "found xmin ... from before relfrozenxid ..."</title><link>https://pg-internal.com/post/chu-li-PostgreSQL-cuo-wu-found-xmin-...-from-before-relfrozenxid-....html</link><description>我已经看到标题中报告的错误多次了。</description><guid isPermaLink="true">https://pg-internal.com/post/chu-li-PostgreSQL-cuo-wu-found-xmin-...-from-before-relfrozenxid-....html</guid><pubDate>Wed, 12 Feb 2025 08:18:23 +0000</pubDate></item><item><title>细说vacuum的truncate操作</title><link>https://pg-internal.com/post/xi-shuo-vacuum-de-truncate-cao-zuo.html</link><description>引入&#13;
&#13;
表级别的storage parameter参数vacuum_truncate是在PG12后引入的，加入该参数用来控制是否回收表尾部的空闲空间，在之前的版本中默认是一直回收表尾部的空闲空间。</description><guid isPermaLink="true">https://pg-internal.com/post/xi-shuo-vacuum-de-truncate-cao-zuo.html</guid><pubDate>Fri, 10 Jan 2025 08:17:32 +0000</pubDate></item><item><title>PG只读索引优化</title><link>https://pg-internal.com/post/PG-zhi-du-suo-yin-you-hua.html</link><description>现在是圣诞节，我的日常工作相对安静，所以让我们再次让它成为故事时间！另一个来自战壕的故事：一个表和一个索引会出错吗？&#13;
&#13;
几周前，一位用户问我为什么其中一个查询的 “性能不一致”。</description><guid isPermaLink="true">https://pg-internal.com/post/PG-zhi-du-suo-yin-you-hua.html</guid><pubDate>Thu, 02 Jan 2025 09:54:28 +0000</pubDate></item><item><title>关于</title><link>https://pg-internal.com/about.html</link><description>本人DBA一枚，熟悉数据库的运维，也从事过中间件和大数据的运维。</description><guid isPermaLink="true">https://pg-internal.com/about.html</guid><pubDate>Sat, 07 Dec 2024 10:52:22 +0000</pubDate></item></channel></rss>