# Article

> Essays on PIG, PostgreSQL extension delivery, Linux packaging, and repository supply chains.

---

LLMS index: [llms.txt](/llms.txt)

---

Long-form articles about the problems PIG is built to solve: making PostgreSQL extensions
discoverable, packaging them as native RPM/DEB artifacts, publishing trustworthy repositories,
and exposing the resulting capabilities through a practical CLI.

Versions, counts, and examples in these articles reflect their publication dates. For current
usage, see the [PIG documentation](/docs/), [extension catalog](https://pigsty.io/ext/), and
[release notes](/release/).

Suggested reading paths:

- **PIG and the pig family:** [Meet PIG](/article/pig/), [instant PostgreSQL cloning](/article/pg-pig-clone/), and [SOW's repository state model](/article/sow/).
- **Extension delivery:** [the original repository rationale](/article/pg-ext-repo/), [PG Extension Cloud](/article/pgext-cloud/), the [extension encyclopedia](/article/pgext-pedia/), and [Extensions for Everyone](/article/extensions-for-everyone/).
- **Packaging and trust:** [why Linux packaging is scarce](/article/packaging-skill/), the [PGDG mirror incident](/article/pg-mirror-break/), [Pigsty's response](/article/pg-mirror-pigsty/), and [what a Valkey packaging bug teaches us](/article/valkey-bug/).
- **The distribution layer:** [forging a global PostgreSQL distribution](/article/forge-a-pg-distro/) and [what a PostgreSQL distribution actually is](/article/what-is-pg-distro/).

---

Section pages:

- [SOW: Postpartum Care for 100,000 Packages](/article/sow/): How SOW manages more than 100,000 repository artifacts with shared package storage, snapshots, and incremental publication.
- [How a Packaging Patch Broke Valkey’s Memory Accounting](/article/valkey-bug/): A packaging patch uses the wrong deallocator in Valkey. It can crash the server or trigger persistent out-of-memory errors.
- [Instantly Clone PostgreSQL Databases—No Black Magic Required](/article/pg-pig-clone/): pig v1.5 adds pig pg clone and pig pg fork, bringing PostgreSQL 18 database cloning and instance forks to the command line.
- [What Is a PostgreSQL Distribution?](/article/what-is-pg-distro/): How PostgreSQL distributions combine the database kernel, extension packages, and operational tools.
- [Extensions for Everyone](/article/extensions-for-everyone/): A report on 1,617 PostgreSQL extension projects, 511 extensions available as packages, and the work needed to deliver them.
- [504 Extensions: Expand the PostgreSQL Landscape](/article/extension-504/): How an RDKit packaging request led to 32 new extensions and a 504-entry catalog.
- [The PostgreSQL Extension Encyclopedia: Bilingual and Ready to Use](/article/pgext-pedia/): I brought metadata, package availability, install commands, and usage documentation for 464 PostgreSQL extensions into one bilingual encyclopedia.
- [464 Extensions, Ready Out of the Box: The New PostgreSQL Extension Catalog](/article/pg-ext-catalog-464/): The fifth extension catalog combines package metadata and usage documentation for 464 extensions.
- [Forging a China-Rooted, Global PostgreSQL Distro](/article/forge-a-pg-distro/): A talk at the eighth China PostgreSQL Ecosystem Conference: how to build a PostgreSQL distribution in China for users worldwide.
- [On Trusting Open-Source Supply Chains](/article/tuna-mirror-site/): In serious production you can’t rely on an upstream that explicitly says “no guarantees.” When someone says “don’t count on me,” the right answer is “then I’ll run it myself.”
- [PG Extension Cloud: Unlocking PostgreSQL’s Entire Ecosystem](/article/pgext-cloud/): A catalog of 431 PostgreSQL extensions, native RPM/DEB repositories, and the PIG command-line tool for finding and installing packages.
- [Build and Packaging: An Overlooked but Scarce Skill](/article/packaging-skill/): On the rare craft of production-grade Linux packaging in the PostgreSQL ecosystem.
- [The PostgreSQL 'Supply Cut' and Trust Issues in Software Supply Chain](/article/pg-mirror-pigsty/): Why Pigsty built its own PGDG mirror after public mirrors stopped receiving updates.
- [PGDG Cuts Off Mirror Sync Channel](/article/pg-mirror-break/): An investigation into stale PostgreSQL mirrors after the FTP and rsync synchronization service closed.
- [Postgres Extensions Day — See You There!](/article/pgext-day/): The program for Postgres Extensions Day in Montreal on May 12, 2025.
- [Pig, The Postgres Extension Wizard](/article/pig/): Why would we need yet another package manager for PostgreSQL & extensions?
- [The Ideal Way to Deliver PostgreSQL Extensions](/article/pg-ext-repo/): Why installing PostgreSQL extensions is difficult, and how a native RPM/DEB repository delivers 340 of them.
