<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>postgres on PIG</title>
    <link>https://pig.pgsty.com/zh/tags/postgres/</link>
    <description>Recent content in postgres on PIG</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    
    
    
      <lastBuildDate>Thu, 03 Sep 2026 14:13:40 +0800</lastBuildDate>
    
    
      <atom:link href="https://pig.pgsty.com/zh/tags/postgres/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>七成正确的调优器：界定 pig pg tune 的边界</title>
        <link>https://pig.pgsty.com/zh/design/pg-tune/</link>
        <pubDate>Sat, 21 Mar 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/design/pg-tune/</guid>
        <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;决策日期：&lt;/strong&gt; 2026-03-21&lt;br&gt;&#xA;&lt;strong&gt;状态：&lt;/strong&gt; 2026-03-23 实现，并随 &lt;a href=&#34;https://pig.pgsty.com/zh/release/pig-1.3.2/&#34;&gt;pig v1.3.2&lt;/a&gt; 发布。&lt;br&gt;&#xA;&lt;strong&gt;当前参考：&lt;/strong&gt; &lt;a href=&#34;https://pig.pgsty.com/zh/pg/#pg-tune&#34;&gt;&lt;code&gt;pig pg tune&lt;/code&gt;&lt;/a&gt;&lt;br&gt;&#xA;&lt;strong&gt;范围：&lt;/strong&gt; 为单个本地 PostgreSQL 实例生成确定性的首轮配置，不是完整的生产设计服务。&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;decision&#34;&gt;决策&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;pig pg tune&lt;/code&gt; 只回答一个有边界的问题：给定 CPU 数量、内存、磁盘容量与工作负载画像，&#xA;这台机器的 PostgreSQL 核心参数应该采用怎样的合理起点？&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig v1.5.0</title>
        <link>https://pig.pgsty.com/zh/release/pig-1.5.0/</link>
        <pubDate>Sat, 04 Jul 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/release/pig-1.5.0/</guid>
        <description>&lt;p&gt;Pig &lt;code&gt;v1.5.0&lt;/code&gt; 是一次面向 PostgreSQL 日常运维的版本：新增本地数据库 clone / fork 工作流，明确 &lt;code&gt;pg&lt;/code&gt;、&lt;code&gt;pt&lt;/code&gt;、&lt;code&gt;pb&lt;/code&gt;、&lt;code&gt;pitr&lt;/code&gt; 的职责边界，并收紧高风险操作的预览、确认与结构化输出行为。&lt;/p&gt;</description>
      </item>
    <item>
        <title>危险操作只有一套语法：PIG 运维 CLI 安全契约</title>
        <link>https://pig.pgsty.com/zh/design/ops-cli-safety/</link>
        <pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/design/ops-cli-safety/</guid>
        <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;决策日期：&lt;/strong&gt; 2026-07-02&lt;br&gt;&#xA;&lt;strong&gt;状态：&lt;/strong&gt; &lt;code&gt;pg&lt;/code&gt;、&lt;code&gt;pb&lt;/code&gt;、&lt;code&gt;pt&lt;/code&gt;、&lt;code&gt;pitr&lt;/code&gt; 已于 v1.5.0 交付；2026-08-29 的 &lt;code&gt;do&lt;/code&gt; 与 &lt;code&gt;build proxy&lt;/code&gt; 修订已随 &lt;a href=&#34;https://pig.pgsty.com/zh/release/pig-1.8.1/&#34;&gt;v1.8.1&lt;/a&gt; 发布。&lt;br&gt;&#xA;&lt;strong&gt;当前参考：&lt;/strong&gt; &lt;a href=&#34;https://pig.pgsty.com/zh/pg/&#34;&gt;&lt;code&gt;pig pg&lt;/code&gt;&lt;/a&gt;、&lt;a href=&#34;https://pig.pgsty.com/zh/pb/&#34;&gt;&lt;code&gt;pig pb&lt;/code&gt;&lt;/a&gt;、&lt;a href=&#34;https://pig.pgsty.com/zh/pitr/&#34;&gt;&lt;code&gt;pig pitr&lt;/code&gt;&lt;/a&gt;、&lt;a href=&#34;https://pig.pgsty.com/zh/do/&#34;&gt;&lt;code&gt;pig do&lt;/code&gt;&lt;/a&gt; 与 &lt;a href=&#34;https://pig.pgsty.com/zh/build/&#34;&gt;&lt;code&gt;pig build&lt;/code&gt;&lt;/a&gt;&lt;br&gt;&#xA;&lt;strong&gt;范围：&lt;/strong&gt; PIG 自己拥有的运维命令；透明上游命令继续采用上游的确认与退出行为。&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig v1.3.2</title>
        <link>https://pig.pgsty.com/zh/release/pig-1.3.2/</link>
        <pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/release/pig-1.3.2/</guid>
        <description>&lt;p&gt;例行维护版本。&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;例行刷新部分扩展版本元数据与扩展目录条目，扩展版本更新。&lt;/li&gt;&#xA;&lt;li&gt;新增 &lt;code&gt;pig pg tune&lt;/code&gt; 子命令，可根据硬件资源与工作负载画像生成 PostgreSQL 调优参数建议。&lt;/li&gt;&#xA;&lt;li&gt;为 &lt;code&gt;pig build get&lt;/code&gt; 新增 &lt;code&gt;pdu&lt;/code&gt; 与 &lt;code&gt;pgdog&lt;/code&gt; 两个源码包 alias。&lt;/li&gt;&#xA;&lt;li&gt;调整 pgext.cloud 的 URL 至新版本的扩展目录 pigsty.io/ext&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;校验和&#34;&gt;校验和&#xA;&lt;/h2&gt;&#xA;| 文件 | 校验和 |&#xA;| --- | --- |&#xA;| [pig\-1\.3\.2\-1\.aarch64\.rpm](https://github.com/pgsty/pig/releases/download/v1.3.2/pig-1.3.2-1.aarch64.rpm) | SHA-256 · `d760f47652ff3e2e4a61eb7b9a68ca68665b2b36c187c52f5eaf50d2f007d8f3` |&#xA;| [pig\-1\.3\.2\-1\.x86\_64\.rpm](https://github.com/pgsty/pig/releases/download/v1.3.2/pig-1.3.2-1.x86_64.rpm) | SHA-256 · `c2e02e62497f4c2055a9b448ddb3a24c618fcd488580c28b2b9a0e7cedacef55` |&#xA;| [pig\-v1\.3\.2\.darwin\-amd64\.tar\.gz](https://github.com/pgsty/pig/releases/download/v1.3.2/pig-v1.3.2.darwin-amd64.tar.gz) | SHA-256 · `b8d066ddefa4530946c74c30e7e4acdab6abf8da70a47dcfe2a77719b79e397f` |&#xA;| [pig\-v1\.3\.2\.darwin\-arm64\.tar\.gz](https://github.com/pgsty/pig/releases/download/v1.3.2/pig-v1.3.2.darwin-arm64.tar.gz) | SHA-256 · `a90e78d879fd720fd2865870c696aed7952558d5ae75591deced3121f2aab1f9` |&#xA;| [pig\-v1\.3\.2\.linux\-amd64\.tar\.gz](https://github.com/pgsty/pig/releases/download/v1.3.2/pig-v1.3.2.linux-amd64.tar.gz) | SHA-256 · `2fe3a9ffbb6383154dfd25ed79420b210828eabf6a96a8af6e8feb9d744b9559` |&#xA;| [pig\-v1\.3\.2\.linux\-arm64\.tar\.gz](https://github.com/pgsty/pig/releases/download/v1.3.2/pig-v1.3.2.linux-arm64.tar.gz) | SHA-256 · `522290aaf14f98f0bae83ce75cc76749f2a4e72742eb5c3cba36a1d2fa4d12c2` |&#xA;| [pig\_1\.3\.2\-1\_amd64\.deb](https://github.com/pgsty/pig/releases/download/v1.3.2/pig_1.3.2-1_amd64.deb) | SHA-256 · `d6c1cf2c52962045f6bbfb2a669058e7f903088526591d6c939e7723f3928d30` |&#xA;| [pig\_1\.3\.2\-1\_arm64\.deb](https://github.com/pgsty/pig/releases/download/v1.3.2/pig_1.3.2-1_arm64.deb) | SHA-256 · `4352385c629b26a1837054445a546da89591499848b557699c2fb70fde9377aa` |&lt;div class=&#34;td-release-card-static&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;v1.3.2&lt;/strong&gt; · &lt;time datetime=&#34;2026-03-23&#34;&gt;2026-03-23&lt;/time&gt;&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig v1.0.0</title>
        <link>https://pig.pgsty.com/zh/release/pig-1.0.0/</link>
        <pubDate>Mon, 26 Jan 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/release/pig-1.0.0/</guid>
        <description>&lt;p&gt;本版本引入三组主要的新子命令（&lt;code&gt;pig pg&lt;/code&gt;、&lt;code&gt;pig pt&lt;/code&gt;、&lt;code&gt;pig pb&lt;/code&gt;），用于管理 PostgreSQL、Patroni 和 pgBackRest，同时新增编排式 PITR 命令，并增强扩展可用性显示。&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig postgres</title>
        <link>https://pig.pgsty.com/zh/pg/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/pg/</guid>
        <description>&lt;p&gt;&lt;code&gt;pig pg&lt;/code&gt; 命令（别名 &lt;code&gt;pig postgres&lt;/code&gt;）用于管理本地 PostgreSQL 服务器和数据库。它封装了 &lt;code&gt;pg_ctl&lt;/code&gt;、&lt;code&gt;psql&lt;/code&gt;、&lt;code&gt;vacuumdb&lt;/code&gt; 等本地原语；集群级 Patroni 操作请使用 &lt;code&gt;pig pt&lt;/code&gt;，编排式 PITR 请使用 &lt;code&gt;pig pitr&lt;/code&gt;。&lt;/p&gt;</description>
      </item>
    <item>
        <title>pig pe</title>
        <link>https://pig.pgsty.com/zh/pe/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/pe/</guid>
        <description>&lt;p&gt;&lt;code&gt;pig pe&lt;/code&gt;（别名：&lt;code&gt;pgexp&lt;/code&gt;、&lt;code&gt;pgexporter&lt;/code&gt;）是运行中&#xA;&lt;a href=&#34;https://github.com/Vonng/pg_exporter&#34;&gt;pg_exporter&lt;/a&gt; 的 legacy 便利包装。&#xA;它读取默认指标与统计端点，也可以请求配置重载，但不是一套通用或版本化的 pg_exporter 客户端。&lt;/p&gt;</description>
      </item>
    <item>
        <title>瞬间克隆 PostgreSQL 数据库，无需黑魔法</title>
        <link>https://pig.pgsty.com/zh/article/pg-pig-clone/</link>
        <pubDate>Mon, 06 Jul 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/article/pg-pig-clone/</guid>
        <description>&lt;p&gt;老冯在半年前（2026-01-08）写过一篇文章《&lt;a href=&#34;https://vonng.com/pg/pg-clone/&#34;&gt;&lt;strong&gt;Git for Data：瞬间克隆 PG 数据库与实例&lt;/strong&gt;&lt;/a&gt;》，介绍了 PostgreSQL 18 和 Pigsty v4.0 的一个新特性：瞬间克隆新数据库。利用文件系统 CoW 机制，以及 PG 18 的 &lt;code&gt;file_copy_method = clone&lt;/code&gt; 新参数，&lt;strong&gt;可以在秒级克隆一个非常大的数据库，而且不占用额外的存储&lt;/strong&gt;。&lt;/p&gt;</description>
      </item>
    <item>
        <title>什么是 PostgreSQL 发行版？</title>
        <link>https://pig.pgsty.com/zh/article/what-is-pg-distro/</link>
        <pubDate>Sat, 04 Jul 2026 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/article/what-is-pg-distro/</guid>
        <description>&lt;p&gt;经常有人问我：&lt;a href=&#34;https://pigsty.cc&#34;&gt;&lt;strong&gt;Pigsty&lt;/strong&gt;&lt;/a&gt; 到底是什么？我通常回答：PostgreSQL 发行版。&lt;/p&gt;&#xA;&lt;p&gt;通常下一个问题就是：那 “PostgreSQL 发行版” 又是什么？&lt;/p&gt;&#xA;&lt;p&gt;这是个好问题。而要把它讲清楚，最好的切入点不是数据库，而是操作系统。&lt;/p&gt;</description>
      </item>
    <item>
        <title>立足中国，面向全球的 PostgreSQL 发行版</title>
        <link>https://pig.pgsty.com/zh/article/forge-a-pg-distro/</link>
        <pubDate>Thu, 27 Nov 2025 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/article/forge-a-pg-distro/</guid>
        <description>&lt;p&gt;大家好，我是冯若航，Pigsty 的作者，独立开源贡献者。&#xA;今天我想和大家聊一个话题：&lt;strong&gt;如何打造一个立足中国，面向全球的 PostgreSQL 数据库发行版&lt;/strong&gt;。&lt;/p&gt;&#xA;&lt;p&gt;这个标题听着有点大，但我想说的很简单：&lt;strong&gt;PostgreSQL 已经赢了，问题是 —— 我们中国开发者在这场胜利中扮演什么角色？&lt;/strong&gt;&#xA;是旁观者，还是参与者？是跟随者，还是引领者？&lt;/p&gt;</description>
      </item>
    <item>
        <title>小猪骑大象：PG内核与扩展包管理神器</title>
        <link>https://pig.pgsty.com/zh/article/pig/</link>
        <pubDate>Mon, 23 Dec 2024 00:00:00 +0000</pubDate>
        
        <guid>https://pig.pgsty.com/zh/article/pig/</guid>
        <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://mp.weixin.qq.com/s/8zxeDQ7p5tPNGYED_1Bugg&#34;&gt;微信公众号&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;最近我在忙一个非常有趣的新项目，这两天总算弄完了。各位朋友们，给大家介绍一下这个有趣的小东西，PostgreSQL 与 Pigsty 中久久缺失的一个命令行工具，我称之为 “&lt;a href=&#34;https://github.com/pgsty/pig&#34;&gt;&lt;strong&gt;pig&lt;/strong&gt;&lt;/a&gt;”。&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
