Repository navigation
Releases
pig-v1.11.0
PIG v1.11.0 aligns embedded Pigsty support with v4.6.0, adds ordered template shorthand lookup in pig sty conf, hardens package and operational command safety across ext, repo, do, pg, pb, pitr, sty, and inventory, and updates the embedded PostgreSQL extension catalog to 625 entries.
Command and package safety
- Protected package removal:
pig ext rmnow blocks accidental removal of PostgreSQL server packages, shared contrib bundles, and supported replacement kernels when invoked through an extension name or category alias (100102, exit2). Independent procedural-language packages remain removable by extension name, while intentional server or kernel removal requires an explicit package-group alias such aspg18-server,pg18-contrib(EL), ororioledb-server. See the protected package removal design. - APT release-level trust reconciliation:
pig repo addandrepo setreconciletrustedandsigned-byoptions across matching APT URIs and suites before writing repository files, preservingsty bootsigning policies across additive operations while rejecting conflicting explicit definitions. - Explicit playbook removal boundaries:
pig do pgsql-rmpassespg_rm_pkg=falseby default unless--uninstallsetspg_rm_pkg=true, andpig do pgmon-rmremoves/infra/targets/pgrds/<cluster>.ymloninfrahosts to matchpgmon-add. See the operations CLI safety contract. - PostgreSQL and recovery execution guards: text
pig pg statusnow shares structured exit status and avoids externaltestdependency when already running as the target DBSU;pig pg psql -fenablesON_ERROR_STOP=1and resolves caller-relative paths before user switching; internal database enumeration passespsql -X;pig pg forkpins isolateddata_directory,hba_file,ident_file,port, and recovery/archive overrides across bothpostgresql.confandpostgresql.auto.conf, while propagating--forceinto confirmation retry hints;pig pg vacuumandpig pg freezeenforce--tablewhen--schemais specified;pig pg killandpig pg tunereject invalid PID, watch, and floating-point boundaries; andpig pb restore/pig pitrpreserve incremental/differential backup labels, reject--reset-*/--no-*overrides and empty-Dflags, and omit raw option values from validation errors. - Structured output and inventory fidelity: early argument-error rendering honors attached
-ojsonspellings without crossing--; atomic file writes preserve existing permissions instead of falling back to0644; legacy wrapper downloads keep progress off stdout; bounded diagnostic capture retains both head and tail context while preserving full data capture for configuration and SQL queries;pig inventory cmdb dumppreserves signed/unsigned 64-bit integer and floating-point scalar types and flags multi-host PostgreSQL URI andsslpasswordcredentials;pig pt statusemits structured JSON errors when Patroni configuration resolution fails; andpig sty grafanarejects unsafe dashboard path segments while redacting malformed endpoint URLs. - Catalog loading and installation paths:
pig exthonors configured catalog sources and validates PostgreSQL installation paths before installation operations.
Pigsty 4.6.0 bootstrap and configuration
pig sty confresolves bare template names in Pigsty's fixed order (conf/,conf/ha/,conf/fork/,conf/app/,conf/demo/,conf/build/), so shorthand names such asfull,trio, orossapply the selected template's version-pinning and preflight rules.pig sty confwrites explicitly selected or detecteddefaultregion values into templates that start withchina, keeping the output file and structured result aligned.pig sty bootandpig repo bootcheck/var/tmp/pkg.tgzfirst and fall back to/tmp/pkg.tgzonly when the primary path does not exist, rejecting untrusted or unreadable automatic bundles before creating target directories.
Catalog and package aliases
- Added
kesandopenbaoto theinfrapackage-group alias on both EL and Debian/Ubuntu. - Refreshed nine extension versions in the bundled catalog:
login_hook:1.8->1.9pg_curl:2.4.6->2.5.0pg_improv:0.12.2->0.14.0pg_integrity_checksums:2.1.0->2.2.0pg_mentat:1.19.1->1.20.0pg_search:0.26.5->0.26.6pg_tokenizer:1.0.0->1.1.0vchord:1.2.0->1.3.0vchord_bm25:1.0.0->1.1.0
- Removed the retired
documentdb_distributedcatalog entry, cleaned its residualrequire_byreferences oncitus,documentdb, anddocumentdb_core, and restoredcolumnartoavailablestatus.
Catalog count and build versions
The embedded catalog contains 625 records (625 available entries and 0 retained removed records). They map to 518 distinct package names, including PostgreSQL contrib modules, or 457 non-contrib package families. See the catalog-entry counting rule.
PIG v1.11.0 is built with Go 1.27.4, embeds Pigsty 4.6.0, and defaults cargo-pgrx to 0.19.3. Follow the installation guide to upgrade PIG.
Upgrade
Upgrade an existing PIG installation to this release:
pig update -v 1.11.0
pig versionSee the installation guide for first-time installation and platform details.
Checksums
c3c24b64dce312a13fe1b3bcb15d38101095dfd2569ed88186838a33291abcac pig-1.11.0-1.aarch64.rpm
2c0d05aba718957f4654cb135771610f042b6f71b7902a792b598744632736b9 pig-1.11.0-1.x86_64.rpm
d9c0b9b3bde4e5e53d64a0df177dcda48575eed0310178adaff11f6d33a76cd9 pig-v1.11.0.darwin-amd64.tar.gz
474788f79563e99e7443e619bb7e594f598284c9a81f22d53f33bacf03c5da27 pig-v1.11.0.darwin-arm64.tar.gz
8f21efdd33d5a063eb7e12d2908912682af4dd94e336d82124ab9eb57808974c pig-v1.11.0.linux-amd64.tar.gz
4c2699618fb50d6bb5d2c0807e407442c69c9873a4d33dc3193bbab9c039bdcd pig-v1.11.0.linux-arm64.tar.gz
4bf90bbd4bc179391b5d88f2d51cb2d08b165212305434f59d12dcab0dc7ea5a pig_1.11.0-1_amd64.deb
ba4fb6cd9927712fe6ac7af237a7f96076febd972cb99c121ebf620a08664979 pig_1.11.0-1_arm64.deb
Full changelog: v1.10.4...v1.11.0
pig-v1.10.4
PIG v1.10.4 refreshes the embedded PostgreSQL extension catalog from 620 to 626 entries and fixes category aliases to respect the requested PostgreSQL major version. The November 6, 2026 snapshot adds seven entries and drops the retired pgcontext_pgvector record, for a net increase of six.
New catalog entries
| Extension | Version | PostgreSQL support | Description |
|---|---|---|---|
pg_warren |
0.8.0 |
15–18 | Versioned graph traversal and computation over PostgreSQL tables |
pg_statecharts |
0.1.0 |
16–18 | Hierarchical state machines and transactional event handling |
pg_statecharts_dev |
0.1.0 |
16–18 | SCXML import and migration tooling for pg_statecharts |
pg_lion |
0.3.0 |
16–18 | Roaring bitmap inverted indexes for filtering, counts and aggregates |
pg_lion_citext |
0.3.0 |
16–18 | Case-insensitive citext operator class for lion indexes |
pg_lion_vector |
0.3.0 |
16–18 | Filtered nearest-neighbor indexes for pgvector vector and halfvec |
opencc |
0.1.0 |
14–18 | OpenCC conversion between Simplified Chinese, Traditional Chinese, regional variants and Japanese Shinjitai |
Installability depends on the target PostgreSQL major, operating system, architecture, and configured repository.
Version and package metadata updates
Selected catalog version changes:
| Extension | Version change |
|---|---|
postgis |
3.6.4 → 3.7.0 |
timescaledb_toolkit |
1.26.0 → 1.27.0 |
vchord |
1.1.1 → 1.2.0 |
vchord_bm25 |
0.3.0 → 1.0.0 |
pg_tokenizer |
0.1.1 → 1.0.0 |
pg_search |
0.26.3 → 0.26.5 |
pg_duckdb |
1.1.1 → 1.2.0 |
pg_lake |
3.5 → 3.6 |
anon |
3.2.3 → 3.3.2 |
pg_integrity_checksums |
2.0.0 → 2.1.0 |
The refresh also updates package availability, dependencies, descriptions, and source metadata. PostGIS 3.7 uses the postgis37_N RPM family, with separate address-standardizer and Tiger Geocoder packages. The EL pgaudit catalog uses pgaudit_14 and pgaudit_15 for PostgreSQL 14 and 15.
Category aliases follow the target version
For stable PostgreSQL versions, pgsql-<category> -v N now selects the same platform and PostgreSQL-major matrix as pgN-<category>. For example, pig ext add pgsql-gis -v 14 --plan no longer includes packages available only for a newer PostgreSQL major. Package names come from the catalog, replacing the obsolete pgaudit rename in the resolver. Beta targets retain the existing latest-stable, PGDG-only fallback.
Catalog count and build versions
The embedded catalog contains 626 records: 624 available entries and 2 retained removed records. They map to 518 distinct package names, including PostgreSQL contrib modules, or 457 non-contrib package families. See the catalog-entry counting rule.
Go remains at 1.27.3, embedded Pigsty at 4.5.0, and default cargo-pgrx at 0.19.3. Follow the installation guide to upgrade PIG.
Checksums
4981a060779423ab4d6c5baaa8fe6c26adb972fc34b9515119b9e5d4723513ce pig-1.10.4-1.aarch64.rpm
d1624bbcec5d3f4715d223acca8311182ef1ee36542c16bcf82602674ee82b07 pig-1.10.4-1.x86_64.rpm
9384759851af53f5cddc381007f78de9a226b43b914848291df86ec41096119e pig-v1.10.4.darwin-amd64.tar.gz
d0f876a518b82f021c83914c5909f1ac914cbe8c0aa0957cef37c83d69b79b0d pig-v1.10.4.darwin-arm64.tar.gz
1caa6f4af13e1f40f5faa9752628efe1dd85190b344bf1597cb3c8d23e99fe0b pig-v1.10.4.linux-amd64.tar.gz
756b7c94936a4c8cca1b0a15f3bcac8eee9669480b8d6af205e920b673a680ba pig-v1.10.4.linux-arm64.tar.gz
98bbfce9dc263e94d4025debdd9bf0e137d9ec12afff4d57e4e08530b1255bf3 pig_1.10.4-1_amd64.deb
18447ccff10fd31c90ae16b34f2885a0415bc6efca5d0ff78f435e68ba6438e1 pig_1.10.4-1_arm64.deb
pig-v1.10.3
PIG v1.10.3 refreshes the embedded PostgreSQL extension catalog from
616 to 620 entries, adding four extensions and updating package, version,
compatibility, and availability metadata.
New extensions
| Extension | Version | PostgreSQL support | Description |
|---|---|---|---|
oai_fdw |
1.16 |
14–18 | Read-only OAI-PMH foreign data wrapper for metadata harvesting over HTTP/HTTPS |
pg_agent_gate |
0.3.0 |
18 | SQL proposal, verification, and execution gate with human approval for agent roles |
pg_integrity_checksums |
2.0.0 |
14–18 | Physical and logical checksums for PostgreSQL pages, rows, tables, indexes, and databases |
pg_stat_tcpinfo |
1.1 |
14–18 | Linux TCP connection statistics, latency, and retransmission metrics |
These records describe catalog and package availability; actual installability
still depends on the target PostgreSQL major, operating system, architecture,
and repository snapshot.
Version and metadata refresh
The catalog updates existing package and extension metadata, including
pg_nanotime 0.2.0 → 0.3.0, supautils 3.4.4 → 4.0.0,
pg_ducklake 1.0.2 → 1.0.3, pg_improv 0.10.0 → 0.12.1,
wrappers 0.6.3 → 0.6.4, edtf_postgres 1.2.3 → 1.3.2,
hypopg 1.4.3 → 1.4.4, and rdf_fdw 3.0 → 3.1.
It also refreshes package matrices, compatibility ranges, descriptions, and
source metadata for the maintained catalog.
Catalog count
The catalog now contains 620 entries: 617 available records and 3 retained
removed records. The catalog-entry counting rule includes
SQL utilities and lifecycle records; availability remains platform-specific.
Go remains at 1.27.3, embedded Pigsty at 4.5.0, and default cargo-pgrx at
0.19.3. Follow the installation guide to upgrade PIG.
Checksums
2068ca8150df3ee837d0ba6e533ba651703c7223c14c522703ee1be9c41666ea pig-1.10.3-1.aarch64.rpm
97ff1c1799262650a92d669dafc905d498d5ab3cf58619198322bc2d274b4ceb pig-1.10.3-1.x86_64.rpm
16203993bbba93dee16a38eac3eedbf67ed2cce3c7894cedbba613e95578004c pig-v1.10.3.darwin-amd64.tar.gz
0eb3f0447107734ae7decf3bc16caf99087e86119e83ce34987ebb376285fb14 pig-v1.10.3.darwin-arm64.tar.gz
a3e61d0d71b9226ac89aa3b1e29baa8c92e5109ecaa2c7e26343f474e5832e04 pig-v1.10.3.linux-amd64.tar.gz
5f25ff6cf634f708d5f70bde39a07d83fe9c7d1ef7d944395eb294eb64554ecf pig-v1.10.3.linux-arm64.tar.gz
dfabbcf4fcdf612d79a7cce76db08d36683e00bd2b0f27c7e78258f54fcb721a pig_1.10.3-1_amd64.deb
4065ed14209a4857b26fa1c7e19adbeee2e5be68df41710db33b64b18159045f pig_1.10.3-1_arm64.deb
pig v1.10.2
English
PIG v1.10.2 refreshes the embedded PostgreSQL extension catalog from
615 to 616 entries, adding pg_nanotime and updating extension versions,
compatibility, and package availability metadata.
New extension
Add pg_nanotime 0.2.0, which
provides nanosecond timestamp and fixed-duration interval types. The catalog
records RPM and DEB packages for PostgreSQL 17 and 18. Upstream classifies
0.2.0 as a testing release.
Version updates
| Extension | Previous | Updated |
|---|---|---|
citus, citus_columnar |
14.2.0 |
14.3.0 packages |
duckdb_fdw |
2.0.1 |
2.0.2 |
pg_mentat |
1.17.2 |
1.18.0 |
pg_tre |
4.5.1 |
4.5.2 |
The Citus catalog extension version is 14.3-1; its RPM and DEB package version
is 14.3.0. The refresh also adds DEB availability metadata for pg_tre on
PostgreSQL 17 and 18.
Catalog metadata
- Update PostgreSQL compatibility, package availability, licenses, and descriptions.
- Set the
duckdb_fdwcatalog range to PostgreSQL 15–18 and
pgcontext_pgvectorto PostgreSQL 17. - Count 616 catalog entries: 613 available records and 3 retained removed
records. The catalog-entry counting rule includes SQL
utilities and lifecycle records; availability still depends on the platform
and PostgreSQL major version.
Go remains at 1.27.3, embedded Pigsty at 4.5.0, and default cargo-pgrx at
0.19.3. Follow the installation guide to upgrade PIG.
Checksums
f07992b20b0b397d1e4bb286656b404e3c911775e98e5fc7d940ef91439f62ed pig-1.10.2-1.aarch64.rpm
372f4fe8d54a1ad888c91976d011d8b95de3e10286966cfc94b0ab91e2170b20 pig-1.10.2-1.x86_64.rpm
a54be0a4ceadf1e047b74fdb187ff57e9f97b81907c8d66795e7787de88ad864 pig-v1.10.2.darwin-amd64.tar.gz
60df049a38e109bccb3089d74fa41e0d22606ce4df0e4fadae39530d546ca731 pig-v1.10.2.darwin-arm64.tar.gz
686c5d6cf682a5a5a1d70cc09a86fecc441b22456f79bb84f192c4730ac2bd8a pig-v1.10.2.linux-amd64.tar.gz
e1e84d5afcddc8e474d130de638bc400bb965f887bdc9face842f111fb94afeb pig-v1.10.2.linux-arm64.tar.gz
38b9634be544a1ee462926f74f3c647c2fc1b21eeffb43e41c24a9033a03a63b pig_1.10.2-1_amd64.deb
4034cebd3a51839ecb0cb8bdf325d783f1ebb88e19b4664ab21fbf31316eae58 pig_1.10.2-1_arm64.deb
中文
PIG v1.10.2 更新内嵌 PostgreSQL 扩展目录,从 615 个条目增至 616 个,
新增 pg_nanotime,并刷新扩展版本、兼容性与软件包可用性信息。
新增扩展
收录 pg_nanotime 0.2.0,
提供纳秒时间戳与固定时长间隔类型。目录包含 PostgreSQL 17、18 的 RPM 与 DEB
软件包信息;上游将 0.2.0 标记为测试版本。
版本更新
| 扩展 | 原版本 | 新版本 |
|---|---|---|
citus、citus_columnar |
14.2.0 |
14.3.0 软件包 |
duckdb_fdw |
2.0.1 |
2.0.2 |
pg_mentat |
1.17.2 |
1.18.0 |
pg_tre |
4.5.1 |
4.5.2 |
Citus 的目录扩展版本为 14.3-1,对应 RPM / DEB 软件包版本为 14.3.0。
本次还补充了 pg_tre 在 PostgreSQL 17、18 上的 DEB 包可用性信息。
目录信息
- 刷新 PostgreSQL 兼容范围、包可用性、许可证与扩展描述。
- 将
duckdb_fdw的目录兼容范围调整为 PostgreSQL 15–18,
pgcontext_pgvector调整为 PostgreSQL 17。 - 扩展数量统一按 616 个目录条目 计:613 条可用记录与 3 条保留的已移除记录。
目录计数口径 包含 SQL 工具与生命周期保留记录,
具体可用性仍取决于平台和 PostgreSQL 大版本。
Go 保持 1.27.3,内嵌 Pigsty 保持 4.5.0,默认 cargo-pgrx 保持 0.19.3。
升级 PIG 请参阅 安装文档。
校验和
f07992b20b0b397d1e4bb286656b404e3c911775e98e5fc7d940ef91439f62ed pig-1.10.2-1.aarch64.rpm
372f4fe8d54a1ad888c91976d011d8b95de3e10286966cfc94b0ab91e2170b20 pig-1.10.2-1.x86_64.rpm
a54be0a4ceadf1e047b74fdb187ff57e9f97b81907c8d66795e7787de88ad864 pig-v1.10.2.darwin-amd64.tar.gz
60df049a38e109bccb3089d74fa41e0d22606ce4df0e4fadae39530d546ca731 pig-v1.10.2.darwin-arm64.tar.gz
686c5d6cf682a5a5a1d70cc09a86fecc441b22456f79bb84f192c4730ac2bd8a pig-v1.10.2.linux-amd64.tar.gz
e1e84d5afcddc8e474d130de638bc400bb965f887bdc9face842f111fb94afeb pig-v1.10.2.linux-arm64.tar.gz
38b9634be544a1ee462926f74f3c647c2fc1b21eeffb43e41c24a9033a03a63b pig_1.10.2-1_amd64.deb
4034cebd3a51839ecb0cb8bdf325d783f1ebb88e19b4664ab21fbf31316eae58 pig_1.10.2-1_arm64.deb
pig v1.10.1
PIG v1.10.1 is a security and catalog maintenance release. It upgrades Go to
1.27.3, refreshes tooling dependencies, and expands the embedded PostgreSQL
extension catalog from 603 to 615 entries.
Security update
- Upgrade the Go toolchain from
1.27.2to1.27.3. CI and release builds read
the version fromgo.mod. - Include the
crypto/x509fix for
CVE-2026-111943 / GO-2026-6809.
Go's certificate verifier rejects chains containing specific intermediate
certificates that are no longer trusted.
Go 1.27.3 adds one security fix over 1.27.2, as documented in the
Go release announcement.
Earlier Go security fixes are already included in the 1.27.2 baseline used by PIG v1.10.0.
Dependency updates
Update inherited tooling dependencies through version-specific module replacements:
| Module | Previous | Updated |
|---|---|---|
github.com/cpuguy83/go-md2man/v2 |
v2.0.6 |
v2.0.7 |
github.com/stretchr/objx |
v0.1.0 |
v0.8.0 |
golang.org/x/mod |
v0.41.0 |
v0.42.0 |
golang.org/x/tools |
v0.51.0 |
v0.52.0 |
Extension catalog
The embedded catalog now contains 615 entries, with 12 additions since v1.10.0:
codesystem,encsearch,hdr_histogram,pg_improvpg_kv,pg_lease,pg_synonym,pg_table_rangepg_tre,pg_try_cast,stannum,tin
The refresh also updates existing extension versions and package availability metadata.
The total follows the catalog-entry counting rule: it includes
packaged SQL utilities and retained records for removed extensions. It does not imply
that all 615 entries support CREATE EXTENSION or can be installed on every platform.
Compatibility
Commands, flags, and configuration remain compatible with v1.10.0.
Embedded Pigsty remains at 4.5.0, and default cargo-pgrx remains at 0.19.3.
Building from source requires Go 1.27.3 or later. Prebuilt packages do not require a local Go installation.
Follow the installation guide to upgrade PIG. Replacing the PIG executable
brings in the updated Go standard library; upgrading the host's Go installation alone
does not update an existing PIG binary.
Checksums
fbd58de4cd1fa767c6d2b15d4fcb029fe38c90a0d12db2e387b7f698b5c8a69d pig-1.10.1-1.aarch64.rpm
7955e93744fcc2d4cce9044102c2bd7ca470388a0556d3220a624f78e38c629b pig-1.10.1-1.x86_64.rpm
31fea0e9513e551e2be8dc99a8fc0f77de4bdfe40e66dadc206e227254bb7942 pig-v1.10.1.darwin-amd64.tar.gz
1177f3b616279100ce97d23eb4fa6bc2e8daf02dbd23780a8dd5025240082c5a pig-v1.10.1.darwin-arm64.tar.gz
0e837098d45b080ddf9205681709dbc38318d2b65cbdaed711246fd5834c3b50 pig-v1.10.1.linux-amd64.tar.gz
6658242816263ea4f5e3abeb3454665098c7100c75c76a3e45386a15faf6f397 pig-v1.10.1.linux-arm64.tar.gz
37f5dca9407010c56d8c5747c8ddcef101d7f07602296e0bb89620c633692eab pig_1.10.1-1_amd64.deb
f385d1c6fac40a6cf648505d349a72e7e3eadf2948024f086efe81733c2a9be5 pig_1.10.1-1_arm64.debpig-v1.10.0
Pig v1.10.0 strengthens the correctness and safety of existing commands. It verifies PostgreSQL
targets before operations, preserves Inventory sources and YAML types, and makes repository,
extension, and automation results match the work actually performed. The bundled catalog grows
from 600 to 603 records. Embedded Pigsty remains 4.5.0; the default cargo-pgrx remains 0.19.3.
PostgreSQL targets and maintenance
- An explicit
-Dbindspsql,ps,kill,vacuum,analyze,freeze, andrepackto the
selected instance, including--alldatabase enumeration. PIG validates the PID, data directory,
port, socket, and process identity before starting the SQL client. Invalid, stale, copied, or
uncertain runtime metadata causes failure instead of a fallback to another instance. - Without
-D, those SQL commands retain native client connection defaults.pg cloneand
pg forkretain their own port options. Promotion timeline checks use the selected instance
or its control data; an unresolved timeline is left unknown. - Plans and confirmation retry commands preserve the selected data directory, PostgreSQL version,
operating-system user, and maintenance options.VACUUM FULLplans correctly require confirmation. - Maintenance operands are literal database names. Values containing
=or beginning with
postgres://orpostgresql://are rejected before planning or execution, without echoing
the value. Spaces and non-ASCII names remain supported. Generated commands put names after
--, so a database named--allcannot become a command option. vacuum,analyze, andfreeze --allvalidate the complete database list before maintenance
begins. Use native clients when a connection string or a database name rejected by this boundary is required.
See pig pg for target selection and
maintenance commands for database-name rules.
Runtime state, recovery, and fork safety
- Permission failures, malformed PID metadata, and unavailable process identity are reported as
errors or unknown state. They cannot authorize forced initialization, restore, or fork replacement.
pg statusreturns130201(exit3) for permission failures and130808(exit1) for
other runtime-probe failures. Plans report an unresolved precondition asunknown. - Declining PITR confirmation or reaching EOF returns
161001(exit7) before any service stop,
restore, or startup. An unknown state cannot supply a PID for forced termination or count as
successful startup. Post-restore SQL checks require a verified target. - Replacing a nonempty unmanaged fork requires valid ownership metadata with a matching explicit
target path. Missing, damaged, or mismatched metadata cannot authorize deletion. Existing
protections for running targets and source/destination relationships remain in force. - Clone and fork path checks run as the selected database operating-system user when needed,
supporting private0700data directories. An inaccessible or unresolved path cannot bypass
validation. Managed orphan cleanup remains available through the managed fork name. - Files written as the database user use private sibling staging and exact-target replacement.
The new file has0600permissions; directory or symlink targets are refused, and replacement
does not overwrite the contents of another hard link to the old file.
The PITR reference explains the managed recovery workflow;
pig pb restore remains a separate restore primitive.
Inventory and Pigsty
sty deployanddopass the resolved Inventory path explicitly to Ansible. Flag and environment
paths resolve from the caller's working directory; quoted~/paths expand before resolution.
A selected missing or invalid source does not silently fall back to another inventory.pg_users[].rolespreserves both role-name strings and structured grants, including grant state
and optionaladmin,set, andinheritattributes.- Editing, serialization, and CMDB export retain strings that YAML consumers might otherwise
interpret as numbers, dates, or timestamps. Existing timestamp scalars retain their original
source representation. Independent PyYAML checks verify the emitted string types. sty conf --proxyaccepts uppercase and lowercase HTTP, HTTPS, ALL, and NO proxy variables.
Missing HTTP and HTTPS values both fall back to ALL_PROXY. Version completion observes dotted
version boundaries, so a request for1.1cannot select1.10.
See Inventory source selection and pig sty.
Repositories and extensions
- Repository commands validate the complete operand list before changing files. Empty values,
empty comma-separated elements, and unsafe repository names fail before mutation.
Only truly argument-freerepo rmbacks up all repository files;repo rm allexpands the
node,pgsql, andinframodules. Removal results preserve the original request and distinguish
missing targets from removed files.--updatealso refreshes the cache after a full backup. - Repository creation retains documentation RPMs. Debug package suppression continues to use
--nodbg; a-docsor-docname alone does not make a package a debug package. - Default extension lists, availability summaries, and refresh results count all catalog records,
including SQL utilities and retained lifecycle entries. The total describes catalog coverage,
not how many extensions can be installed on one host or enabled withCREATE EXTENSION. - Text, JSON, and YAML share availability rules. On covered Linux platforms, package matrices take
precedence and a missing matrix cell means unavailable. Architecture aliases are normalized.
On macOS, the status describes declared PostgreSQL support without promising an RPM/DEB package.
ext list -vselects the version used to evaluate status; unavailable records remain listed. ext importreports failure if any requested package cannot be resolved or downloaded, while
retaining successful downloads and reporting the completed and failed portions. APT virtual
dependency markers are excluded from package download requests. Installed-library scanning also
recognizes catalog entries without a control file.- The three new catalog records are
pg_icu_parser,pg_vectorsearch, andtextsearch_intl.
Existing versions and platform metadata are refreshed as well. Usepig ext avail NAMEto inspect
a target before installing.
Builds and automation
- Multi-version build dependency installation expands package names for every selected PostgreSQL
major version and removes duplicates. Default build targets retain their metadata and local
installation rules independently of package-matrix gaps. - Debian/Ubuntu builds preserve the inherited
PATHorder and append the current user's
~/.cargo/binwhen present, preserving an explicitly selected toolchain. - Xray setup recognizes complete legacy service definitions, including marker-free macOS plists
generated by the previous renderer. A comment alone cannot prove ownership; changed or foreign
definitions still require explicit replacement. Matching reruns preserve a running service. - JSON/YAML output and
PIG_NON_INTERACTIVE=1consistently disable prompt input and use
non-interactive sudo in PIG-owned adapters. Explicit data-input channels remain available;
native Patronictl forwarding retains its interaction and exit contract. - CMDB connection strings, legacy VMess credentials, and license keys are excluded from routine
parameters and failure details. Explicit credential export and raw Inventory display retain
their documented sensitive-output behavior. - Exporter HTTP 4xx/5xx responses now fail with the numeric status and standard description,
without including response bodies or custom status text. Unsupportedpig updateplatforms
fail explicitly. Command help and bilingual references are aligned with these behaviors. - Go dependencies and validation tools are refreshed. CI includes Linux permission and instance
boundary acceptance plus independent YAML consumer checks.
See pig build, pig pe, and global command behavior.
Upgrade notes
Existing command names and flags remain available. Automation should handle the corrected failure
statuses for partial imports, HTTP errors, cancelled recovery, and indeterminate PostgreSQL state.
Scripts must supply valid repository operands, explicit confirmation where required, and literal
maintenance database names. When a name begins with -, place all options before -- and the name.
Upgrade with the installation instructions.
Verification
The v1.10.0 tag points to
981726b.
The exact commit passed full CI,
including shuffled tests, command race regressions, static analysis, vulnerability scanning,
and Linux acceptance. The Release workflow
passed and produced eight Linux/macOS archives and RPM/DEB packages.
All eight downloaded artifacts match the SHA-256 manifest
and GitHub's asset digests.
Full Changelog: v1.9.0...v1.10.0
pig-v1.9.0
Pig v1.9.0 adds one-command Xray client/server setup, automatic Pigsty repository-key
preparation, and a refreshed 600-entry extension catalog. The default cargo-pgrx
version is now 0.19.3; the embedded Pigsty version remains 4.5.0.
Xray clients and servers
pig build proxyinstalls or verifies Xray.pig build proxy clientconfigures a
VLESS/REALITY/Vision HTTP/SOCKS client;pig build proxy serverconfigures a Linux server.
Linux uses systemd; the macOS client uses a dedicated user LaunchAgent.- Client input accepts a standard VLESS URI,
--from FILE/-, or explicit connection flags.
The first client listener is127.0.0.1:12345; the first direct server listener is
0.0.0.0:443. Repeated setup preserves existing listeners and server credentials. - Matching configuration, ownership, permissions, and service state avoid rewrites and
restarts. Failed client connectivity checks restore prior managed files and service state.
Replacing a different client requires--replace --yes;--planpreviews either role. server --export-only --export -exports an existing connection without changing the
deployment. File exports use mode0600; explicit stdout export requires text output.
Ordinary results and plans omit credentials. The historical VMess positional form remains
available through V2Ray.
sudo pig build proxy server --host proxy.example.com --target www.sraoss.co.jp:443 --export ./client.uri
sudo pig build proxy client --from ./client.uriSee pig build for prerequisites, macOS setup,
credential handling, and the separate public-ingress boundary.
Repository keys
repo add,repo set, andsty bootprepare the embedded Pigsty public key when selected
repositories need it. Existing regular key files are reused; missing defaults are installed
offline at/etc/pki/rpm-gpg/RPM-GPG-KEY-pigstyor/etc/apt/keyrings/pigsty.asc.- Implicit default-key failure emits a warning and falls back only for selected Pigsty
definitions. Default key references remain stable, including APTsigned-by. - Explicit signing-key references are mandatory: invalid or unavailable keys fail before
repository replacement or cache refresh. EL imports explicit references withrpm --import.
Selecting unrelated repositories does not prepare the Pigsty key.
See pig repo for signature-enforcement
defaults and the distinction between key preparation and metadata refresh.
Catalog and build defaults
- The embedded catalog contains 600 entries, adding 22 entries to the v1.8.1 snapshot.
New entries includeedtf_postgres,plphp,pg_lexo,pg_money,istore,colnames,
pg_statkit,pgtelemetry,pg_rusage,pgexporter_ext,pg_statvfs, andlibx509pq.
Package versions and platform-availability metadata are refreshed as well. - The catalog total includes retained lifecycle records. Installability depends on each
extension's state and OS/architecture/PostgreSQL matrix; 600 is not a per-platform count. pig build pgrxdefaults tocargo-pgrx 0.19.3. An explicit-vand extension-specific
catalog metadata continue to select another required version.- Platform debug packages remain enabled by default, as in v1.8.1. Use
--nodbgfor RPM
debuginfo/debugsourceand DEBdbgsymsuppression;-s|--symbolis a deprecated no-op.
Compatibility
No existing command or flag is removed. New Xray role commands use VLESS/REALITY/Vision;
existing positional VMess commands retain their V2Ray behavior. A server setup result verifies
the local listener and service; firewall, Nginx, cloud security groups, and public reachability
remain separate operator responsibilities.
Verification
The verified v1.9.0 tag points to
9eb5488. The exact commit passed
full CI, including randomized tests,
command race regressions, vet, static analysis, vulnerability scanning, and a release snapshot.
The Release workflow produced eight
Linux/macOS archives and RPM/DEB packages. Published downloads were verified against SHA-256.
Checksums
d0d80bd23a654308598f265ce4b4d4f78d6156c113ce6aa00f82bfc9519a180f pig-1.9.0-1.aarch64.rpm
e3b25640c9e528f2b883f7e5f4838640a8897857fa22dc1324aca69b72966a7c pig-1.9.0-1.x86_64.rpm
d7eb266e1b8ab60d20ac582c6b0e3741b7e8516ce1a56df447c0285b3e5dcab9 pig-v1.9.0.darwin-amd64.tar.gz
096284577d0493ddba871b51e820654b358c7f4eb9c11175674a1d21b2718824 pig-v1.9.0.darwin-arm64.tar.gz
a4b5ffca540bc4f924f86398bcad6cb7221ac7520b54b1d3fd32c9877d9cafd2 pig-v1.9.0.linux-amd64.tar.gz
ddfa80fbb34f6738dd68e0d04cd92355711330f6896cd650df7d71b012788def pig-v1.9.0.linux-arm64.tar.gz
3d955a24a8ff805ee2b6da6428e2b882f97104e2fb597785225269443071d93a pig_1.9.0-1_amd64.deb
c175b37552147e64590309801800826a0075ae8285ed78178c2adcaec3741471 pig_1.9.0-1_arm64.deb
pig-v1.8.1
Changelog
- cc770b5 build: bump default pgrx to 0.19.2
- 1c6f524 build: enable debug packages by default
- f0cb2bb chore(deps): upgrade Go and build tooling
- c9e050b chore(deps): upgrade to Go 1.27.0
- e3d1eb4 chore(release): prepare v1.8.1
- 49a8599 chore(release): track immutable upload helper
- f58cbd2 data(ext): refresh extension catalog
- 2dbf9ee docs(repo): make website the canonical documentation source
- 220ef9c fix(build): make proxy setup service-safe
- de7ffd0 fix(build): mark proxy operands optional
- 74cb128 fix(build): redact proxy credentials in structured output
- 37741a5 fix(build): reject incomplete artifacts and unsafe inputs
- 3a87d3d fix(cli): keep config-free commands diagnosable
- 6bf93b9 fix(cli): validate automation inputs and refresh postgres detection
- 1db4d03 fix(cmd): isolate legacy output and strengthen CI gates
- d99a6e8 fix(cmd): preserve leaf initialization policy
- 4942a7a fix(config): fail fast and avoid query-side persistence
- 3e1603b fix(do): align Pigsty name validation
- a880485 fix(do): reject reserved Ansible cluster targets
- 6aaf302 fix(log): read database logs as dbsu and reject links
- f0ff11e fix(pg): bind role detection to the selected instance
- 5e21302 fix(release): harden self-update and release guards
- 0eab530 fix(repo): correct offline cache examples
- 70bca04 fix(repo): deduplicate modules and simplify replacement flow
- 7007f41 fix(repo): fail partial add and remove operations
- 8fa3abb fix(repo): make offline bundles fail closed
- d1e804c fix(security): redact license and structured output secrets
- d9fd27d fix(utils): preserve DBSU argv through sudo
- f3e96a1 refactor(archive): use rooted native extraction for build specs
- 420f45e refactor(cli): simplify sty and extension workflows
- d745c6f refactor(inventory): remove legacy options and isolate validation stages
- be0eacb refactor(pg): move fork rendering and remove unreachable helpers
- e3580ce refactor(repo): remove obsolete cache wrapper
- 41d6003 test(cli): tighten review guards
pig-v1.8.0
Pig v1.8.0 makes Pigsty controller setup native. The two core setup commands,
pig sty boot and pig sty conf, are now failure-aware Go workflows instead of
wrappers around the legacy bootstrap and configure shell scripts. The release
keeps the public catalog total at 575 packaged PostgreSQL extensions and embeds
Pigsty 4.5.0.
Native pig sty boot
- Bootstraps the controller end to end: locale, repositories, controller packages,
Ansible and its Python dependencies, localhost SSH, and a missing~/pigstytree. - Supports online sources, explicit local packages or HTTP(S) URLs, trusted automatic
offline packages, and an already prepared/www/pigstyrepository. - Backs up replaced repository definitions and restores them on package-setup failure.
Explicit input errors are hard failures; optional final conveniences are warnings.
JSON and YAML output expose the selected mode, rollback state, warnings, and next steps.
Native pig sty conf
- Generates Inventory from a safe template below
<PIGSTY_HOME>/conf, with equivalent
positional and--confmode selection, up to ten ordered IPv4 mappings, and exact
placeholder-domain replacement. - Adds deterministic interactive and non-interactive IP selection, structural mutations,
complete validation, and random-secret generation without leaking values in structured output. - Refuses direct, symlink, symlinked-parent, and hard-link source/output aliasing, then
atomically writes a validated result with mode0600.
Other updates
- EL8 and newer consistently prefer DNF, local RPM requirements are resolved by provider
capability, fresh repository bootstraps restore/www -> /data/nginx, and self-update
accepts whitespace in the latest-version marker. - Extension packages, metadata, and availability matrices receive their routine refresh;
the published PostgreSQL-extension count remains 575. - CI and release builds use Go
1.26.6, pinned analysis tools and GoReleaser, dependency
verification, workflow linting, vulnerability scanning, and a full release snapshot.
Compatibility notes
pig sty bootno longer executes<PIGSTY_HOME>/bootstrap.pig sty conf --rawhas been removed; use the native workflow.--conf MODEremains
available, withpig sty conf MODEas the equivalent positional form.pig sty conf --ipaccepts up to ten comma-separated IPv4 addresses;--skipand
--ipremain mutually exclusive.- EL8 and newer use DNF. The limited EL7 catalog retains its separate legacy YUM path.
Artifacts
Release archives for Linux and macOS (amd64 and arm64), RPM packages (x86_64 and
aarch64), DEB packages (amd64 and arm64), and checksums.txt are attached below.
v1.7.0
Pig v1.7.0 is a repository compatibility and catalog release on top of v1.6.2. It makes China-mirror selection explicit, preserves native DNF module filtering by default, restores a streamlined EL7 repository catalog, and grows the bundled extension snapshot from 572 to 575. The embedded Pigsty version remains 4.5.0.
Highlights
-m|--mirrornow selects the bundledchinarepository definitions directly. PGDG, Rocky Linux, Debian, Ubuntu, Docker, and other regional routes use the maintained mirror list instead of the former runtime PGDG proxy rewrite.- EL repository definitions no longer receive
module_hotfixes=1globally. Pigsty and PGDG repositories that intentionally override module streams opt in explicitly; BaseOS, AppStream, EPEL, and other repositories retain native DNF module filtering. - EL7 keeps a deliberately limited compatibility catalog: archived CentOS 7 Base/Updates/Extras/SCLo and EPEL definitions for
x86_64, plus shared Pigsty and supported PGDG entries. The DNF-onlymodule_hotfixeskey is stripped when rendering EL7 YUM configuration. - Repository setup now reports unsupported platforms when the catalog has no matching definitions, instead of continuing with an empty repository set.
- Release metadata is bumped to
1.7.0; the embedded Pigsty version remains4.5.0.
Extension Catalog
- Packaged extensions: 572 -> 575, with no removals.
- 3 new extensions:
pg_local_cache 1.2.0,pg_statviz 0.1.0, andpg_policy 0.1.0. - Version refreshes include
biscuit 3.0.0,pg_clickhouse 0.10.0,pg_search 0.25.2,pg_turbovecpackages1.29.0,pg_uuid_v8 1.1.0, and the Debianq3c 2.0.5package. - Package metadata and availability matrices are refreshed. Run
pig ext reloadwhen you need a catalog newer than this release snapshot.
Compatibility Notes
- No commands or global flags are removed in this release.
-m|--mirroris now an explicit China-region selection rather than a PGDG proxy rewrite. Use--region=default|china|europewhen you need a specific route.- Custom EL repository definitions that require module-stream overrides must now set
meta.module_hotfixes: 1explicitly. This setting is intentionally omitted for ordinary OS repositories and removed on EL7. - EL7 is end-of-life and only has limited compatibility coverage; prefer EL8 or newer for current PostgreSQL and extension packages.
Checksums
Artifacts: GitHub Release · checksums.txt
e3a339fefdd2203825d15438b52f18e729547eb88dae014212a46006a9bd47d1 pig-1.7.0-1.aarch64.rpm
34ce29d75ef9f669f3bf832cc812ae082abda7320ee2b2336ea61e701b9b67f8 pig-1.7.0-1.x86_64.rpm
d26803c685ba29c01cb8e6dfe50c6c1b0f004173be82015618fa8cdf6a329ba7 pig-v1.7.0.darwin-amd64.tar.gz
ea8120d48b93da936919f590ebbefeb72e73277e6bc133c1ef0bb1abc055d3ce pig-v1.7.0.darwin-arm64.tar.gz
40295b64a2423094fa6f4e6d31da8d8ad5b26698c397d8916c0289591522d0bf pig-v1.7.0.linux-amd64.tar.gz
7929091732957d85751ef3381285a1e5b0c3c7f82c0e00fc24ed085c496012d5 pig-v1.7.0.linux-arm64.tar.gz
41523c15f36a6c1acaf4af5c851d2626472fc15c21d25f91fc1e991fe8411072 pig_1.7.0-1_amd64.deb
adf7b2d9ce8fe42bad935428d16a9c998337df986b1065e0761dc167ce837ef5 pig_1.7.0-1_arm64.deb