<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Partitioning on BenzHub</title><link>https://benzhub.github.io/tags/partitioning/</link><description>Recent content in Partitioning on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Fri, 03 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/partitioning/index.xml" rel="self" type="application/rss+xml"/><item><title>分區管理：PostgreSQL 宣告式分割表的完整維運指南 | PostgreSQL</title><link>https://benzhub.github.io/post/postgresql/027-partitioning/</link><pubDate>Fri, 03 Jul 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/postgresql/027-partitioning/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;分割表（Partitioned Table）&lt;/strong&gt; 是 &lt;strong&gt;PostgreSQL&lt;/strong&gt; 處理大規模資料集的核心手段。自 &lt;strong&gt;PG10&lt;/strong&gt; 引入宣告式分割（Declarative Partitioning）以來，透過 &lt;strong&gt;RANGE&lt;/strong&gt;、&lt;strong&gt;LIST&lt;/strong&gt;、&lt;strong&gt;HASH&lt;/strong&gt; 三種策略將大表拆分為多個小分割，搭配 &lt;strong&gt;Partition Pruning&lt;/strong&gt; 讓查詢只掃描必要的分割，是兼顧效能與維護性的最佳方案。本篇涵蓋分割表從建立、日常管理、&lt;strong&gt;pg_partman&lt;/strong&gt; 自動化到大表線上遷移的完整維運指南。&lt;/p&gt;
&lt;/blockquote&gt;</description></item><item><title>DDL 與 Schema 管理：PostgreSQL 資料結構定義與分區策略 | PostgreSQL</title><link>https://benzhub.github.io/post/postgresql/013-ddl-schema/</link><pubDate>Fri, 19 Jun 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/postgresql/013-ddl-schema/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;DDL（Data Definition Language）&lt;/strong&gt; 負責定義、修改和刪除資料庫物件。在 &lt;strong&gt;PostgreSQL&lt;/strong&gt; 中，DDL 不僅影響邏輯結構，更直接操作&lt;strong&gt;系統目錄（System Catalog）&lt;/strong&gt;，並可能持有&lt;strong&gt;排他鎖（Exclusive Lock）&lt;/strong&gt; 影響並行工作負載。掌握 DDL 的鎖定行為與&lt;strong&gt;宣告式分區（Declarative Partitioning）&lt;/strong&gt;，是生產環境 Schema 管理的核心能力。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>