Skip to content

pig v1.12.0

PostgreSQL 19 support, publisher signing keys, confirmed repository removal, 632 catalog entries, and CMDB upgrade guidance.

PIG v1.12.0 brings PostgreSQL 19 into the regular package and build repositories, verifies online repositories with publisher keys, and expands the extension catalog from 625 to 632 entries. On a fresh host, the default PostgreSQL major is still 18.

Download the Linux and macOS builds and verify the file against the SHA-256 checksums.

Upgrading from v1.11.0

Use the v1.11 manual for hosts still running that release.

  1. Upgrade PIG first with the package for your platform. On Linux, you can also run sudo pig update -v 1.12.0 once your selected mirror carries this release. Check the result with pig version. RPM and DEB packages install /usr/bin/pig. If an older version appears, use type -a pig to find other copies and /usr/bin/pig version to check the packaged binary. Both versions fetch the same public repo.yml. On EL, v1.11.0 can write a literal ${admin_ip} into the local repository URL or omit the key that TimescaleDB needs to verify metadata.
  2. If you use cached catalogs, back up any edits to ~/.pig/repo.yml and ~/.pig/extension.csv. Run pig repo reload and pig ext reload under the account that uses each cache. These commands overwrite the cached files. PIG automatically uses its bundled extension catalog when the default cache is a byte-for-byte copy of v1.11.0’s catalog. A customized cache still takes precedence. Re-add the modules whose on-disk definitions you want to update, for example pig repo add pgsql -u. On APT, select overlapping PIG modules together, for example pig repo add infra pigsty pgsql -u. Repository upgrades · Extension catalogs
  3. Update scripts that call pig repo rm <module> or pig repo rm all to pass -y. Named removal deletes the selected files without a backup. Use --plan to see the paths. With no names, pig repo rm still backs up all definitions unattended, as does the replacement step in repo set. Removal and confirmation
  4. If you used the ClickHouse server repository, the built-in click module, its signing key, and the clickhouse package group have been removed. Existing source files stay active until you change them. To retire one, run pig repo rm click --plan, then pig repo rm click -y. A same-named Deb822 .sources file needs separate attention. The PostgreSQL extension pg_clickhouse remains available in the catalog.
  5. If your pgBackRest configuration defines several stanzas, add -s NAME to scripts that run pb restore, pb expire, pb delete, or pitr. Check the selected stanza in the plan before running the command.
  6. If you already use Pigsty’s CMDB, check the database view before loading a new inventory. The CMDB migration preserves existing declarations. Static YAML inventories need no database migration.

PostgreSQL versions and platforms

Target Package and build behavior
15–19 The active window moves from 14–18 to 15–19. PG 19 packages are available on EL 9/10, Debian 12/13 and Ubuntu 22.04/24.04/26.04, on both x86_64 and aarch64. EL 8 and Debian 11 stop at PG 18. Legacy EL 7 stops at PG 15.
18 Package selection and pg tune normally fall back to 18 when no active installation or explicit major supplies the target. A local installation can select 19. PGTDE has its own default, described below.
20 Explicit testing target for the beta repository, build --beta options, pg20 aliases and sty conf -v 20. On EL 7/8 and Debian 11 the module is empty. A standalone repo set beta fails before moving existing repositories.
10–14 Existing installations and explicit numbered aliases remain usable where the required packages or local binaries exist. PG 14 has left the default repositories, builds, and availability reports.

On EL, pgdg19 replaces pgdg19-beta, and pgdg20-beta follows PostgreSQL development. The catalog retires pgdg14 and pgdg14-nonfree. Module membership follows the host OS and architecture. The remaining PG 15–18 non-free repositories can be skipped when unavailable. pig pg tune emits io_workers only for PG 18 because PG 19 removed that parameter. PostgreSQL version policy

Repository signing, replacement, and offline use

  • The catalog has 78 online definitions with a signing policy and two local definitions. The binary ships 37 publisher certificate files and references the Debian and Ubuntu system archive keyrings. PIG installs the keys for the selected modules. Refreshing repo.yml updates definitions. Renewed certificates come with the binary. An older cached PGDG definition inherits signing policy when its name and upstream URL match and it has no explicit verification override. The two local definitions still trust the selected bundle or intranet repository. Signing keys
  • APT uses signed-by for publisher repositories and reconciles distribution sources with existing system keyrings. Custom catalogs can use absolute paths and ordered 40-hex fingerprints, including the exact-key ! suffix. PIG checks keyring access for APT’s sandbox user and rejects conflicting signing options for the same active URI and suite before writing. Debian 12 and 13 can differ when APT verifies an exact signing subkey. Signing verification on both APT versions
  • On EL, DNF/Yum reads local gpgkey files. TimescaleDB authenticates repository metadata and verifies package digests against it. GitLab uses separate metadata and package keys. Unattended key import is scoped to matching built-in definitions. AppStream excludes postgresql* and libpq*, selected vendor repositories use module_hotfixes, and Docker CE uses the native priority.
  • On EL 8–10, DNF priorities are 1 for the optional local repository, 10 for Pigsty PGSQL, 20 for Pigsty INFRA and 40 for stable PGDG. Distribution repositories default to 99. The managed EPEL repository excludes pgbouncer. Reapply the modules used on each node after updating the catalog, keeping its region. PGDG requires EL 9.7+ or 10.1+ on those major releases. On Debian 11, PGDG uses the signed, frozen bullseye-pgdg archive. Repository definitions
  • repo set backs up definitions including files whose names start with backup, then restores them if the native metadata refresh fails. A skipped DNF repository can still yield success under skip_if_unavailable. APT follows the host’s APT::Update::Error-Mode. repo status now lists /etc/apt/sources.list and Deb822 .sources files. Repository replacement
  • repo add local -I 192.0.2.10 and repo set local -I 192.0.2.10 point EL and Debian/Ubuntu at the admin node’s HTTP /pigsty repository. The default address is 127.0.0.1. Cached custom definitions with a fixed URL keep it. For an archive on disk, repo boot writes an absolute, escaped file: URL, including when the supplied directory is relative or contains spaces, #, or %. Offline repositories
  • Both forms of repo rm support --plan. Named all expands to node, pgsql and infra. JSON/YAML execution without consent returns code 111001 and exits 7. A retained sibling .sources file is reported. With repo list all, repos includes the entire catalog and its host availability. On Linux, modules still reflects the host. On macOS, the default repository list is empty and all shows the catalog for browsing. Repository inspection

Extension catalog and package coverage

All 625 previous entries retain their IDs and names. Seven additions bring the total to 632 available catalog entries, including SQL utilities. Distinct package names grow from 518 to 525 including contrib, and non-contrib package families from 457 to 462. An entry’s catalog status describes the project. Use pig ext avail <name> to check packages for a particular host and major.

New entry What it provides
pg_plan_advice Describe, reproduce, and constrain query plans with plan advice.
pg_stash_advice Store and automatically apply plan advice by query ID.
pgq_node Node registration and watermark tracking for cascaded PgQ queues.
iban International Bank Account Number type with format and checksum validation.
postcode UK and international postal code types with validation and indexed prefix search.
pg_promise_guard Detect unenforced constraints, invalid indexes and disabled triggers in the PostgreSQL catalogs.
pg_plan_guard Detect drift from captured PostgreSQL query plan baselines.

pg_plan_advice and pg_stash_advice ship with PG 19 contrib. Requesting either on PG 18 reports an unavailable target even when the shared contrib package exists. The 98 existing entries with version changes include TimescaleDB 2.32.1, VectorChord 1.5.0, pg_search 0.27.1, pg_duckdb 1.2.2 and pg_tde 2.3.0.

Across 462 package families, eight distributions, two architectures and five PostgreSQL majors, the bundled matrix has 36,960 cells. Of these, 33,539 have a package, 3,395 are inapplicable, and 26 are missing. All 26 gaps are on PG 19. Ten are pg_variables on Debian/Ubuntu. The other 16 are jsquery, pg_failover_slots, pllua and plprofiler on both architectures of EL 9/10. The ten Debian/Ubuntu combinations do have the shared package for pgpool_adm, pgpool_recovery and pgpool_regclass. Single-extension tables distinguish inapplicable cells (n/a) from missing packages, and the host summary shows only supported majors. Availability reports

Installing packages and building kernels

  • pig install uses the same resolved major and package list for preview and execution. A mix of native names and PIG aliases goes through one APT/DNF transaction. Raw package names are passed to the native manager. A recognized target with no package for the platform fails before installation (code 100502, exit 6). Invalid operands, option-like names and APT suffixes that change the requested action are rejected. Valid Debian version revisions still work.
  • ext update and ext rm reject inline version pins. ext import resolves package groups and detects invalid or empty expansions before creating the destination. A partly satisfiable ordinary request reports downloaded packages and failed names and exits 1. ext info uses the selected catalog row consistently, including in text output for duplicate names, versions or providers. Extension commands
  • pgtde selects the PG 18 or 19 kernel and contrib package. The extension spelling pg_tde selects the kernel alone for installation. With no explicit major or active installation, a request containing either spelling defaults to 19 on platforms with the packages and to 18 on EL 8. That default applies to other unversioned names in the same request. Debian 11 has no PGTDE package. Known PG 18-only PGTDE entries from the old cache are upgraded in memory. Custom definitions and the cache file are preserved. OpenHalo is pinned to PG 19. Removing aux_mysql or pg_tde by extension name cannot remove its containing kernel. Kernel selection and removal
  • Versioned kernel builds use the same major to fetch sources, install dependencies and invoke Make. pgEdge and OrioleDB default to 18, Babelfish builds default to 17, and PGTDE supports separate pgtde-18 and pgtde-19 goals. Debian builds receive the requested PG environment. build spec creates the RPM recipe tree as the invoking user. Kernel recipes
  • The default cargo-pgrx moves from 0.19.3 to 0.20.1. build pgrx locates Cargo and installed pg_config binaries for the host and rejects missing or unsupported targets early. build tool installs the active server/devel packages for the OS, including openssl-devel on EL 8–10. Build tools

Pigsty configuration and inventory

The bundled Pigsty version changes from 4.6.0 to 4.7.0. sty conf uses PG 19 with the regular repositories. It removes the obsolete beta module from older pg19 templates and adds testing repositories for an explicit PG 20 request. PG 19 declarations omit unavailable optional TimescaleDB and Citus packages, preloads and database extensions. A Citus template keeps its compatible major and warns on a 19 or 20 request.

When a template omits its global major, sty conf starts package alias rewrites from PG 18. Explicit locale settings take precedence over generated defaults. With -g, the generator assigns new values to the MySQL root, monitor and cluster password keys, including keys with custom passwords. Fork configurations respect version pins inherited by groups and hosts. The fat template can change the instance major while preserving its PG 15–18 offline package set and literal vendor package names. mongo reports the platform requirements for PG 19 DocumentDB packages. OpenHalo’s template targets 19. The Babelfish template defaults to 18 and also accepts 17. Template behavior

sty init rejects empty overlays and unsupported archive entries before replacing the installation. It preserves protected configuration and PKI files and applies the correct permissions to new directories. Grafana dashboard exports now write through the selected directory handle and replace completed files atomically. The Inventory editor preserves comments, tags and adjacent keys when editing or deleting YAML block scalars. It also edits multiline plain values without leaving continuation lines behind. Pigsty commands · Inventory editing

pig inv cmdb dump checks the generated YAML against the CMDB declaration before writing it and keeps long plain strings on one line. pig inv cmdb load reads back declarations, group membership and host keys in _meta.hostvars inside the load transaction. A mismatch rolls the replacement back. Pigsty’s corrected pigsty.inventory view handles an empty group, deletion of its last host, and a database with no hosts. New CMDBs created with the corrected schema get the view automatically. An existing v4.6 database retains its old view after a binary upgrade. Save its current definition, apply the view-only migration from files/migration/cmdb-inventory/README.md, then run pig inv cmdb check. Running cmdb init on an existing database replaces the pigsty and pglog schemas. Migration and rollback

Database operations and automation

  • Before deleting an initialized data directory, pg init --force verifies that the selected server is stopped. As the database OS user, it checks the chosen initdb and any supplied server settings, external WAL directory or password file. A failed preflight preserves the old cluster. For replacement, specify the intended major with -v, select the directory with -D and keep the password file outside it. The database OS user must be able to remove and recreate the directory in its parent. A failure during removal or initialization can require restoring from backup. pg clone requires plain database names for its source, destination and maintenance connection. Fork, clone and restore plans, confirmation retries and follow-up commands retain the selected paths, database OS user and port where applicable. pg fork --list needs no name. Conflicting fork selectors exit 2. PostgreSQL operations
  • pig pb restore distinguishes a missing backup set, a permission error and other pgBackRest failures. Its failure detail retains the native exit status. Restore, expiration, deletion and PITR require an explicit stanza when the configuration contains several. With a single stanza, their plans and confirmation retries retain that target. Structured pb expire --plan lists recognized removals and reports a partial preview when the native output includes warnings or unrecognized removal records. If PIG has stopped Patroni and a subsequent PostgreSQL stop, restore or startup step fails, pig pitr reports that Patroni was stopped. Preflight failures can return only the error. Caller-relative data and configuration paths are resolved before switching users. pgBackRest restore · Point-in-time recovery
  • pig pt set scopes the Patroni configuration and DCS target to each invocation. Plans, logs and follow-up commands keep credentials out of DCS URLs and diagnostics. Native patronictl forwarding retains its own prompts and output. pig pg psql preserves literal database names and keeps SQL and invalid connection inputs out of command echoes. pig pe accepts bare or bracketed IPv6 exporter addresses and rejects invalid ports with exit 2 before making a request. HTTP errors report the status without returning the exporter’s response body. Patroni · pg_exporter
  • A --plan preview leaves persistent PIG configuration untouched. Unknown commands and flags exit 2. Invalid output formats such as -o xml exit 1. Configuration initialization failures exit 8 (structured code 990701). An explicit Pigsty home selects the deployment to look up even when its directory is missing. Use sty init -p PATH to set a new installation’s destination. Structured help marks repeatable operands with variadic and the optional name in pg fork --list with required_unless. The after_dash field identifies native options for pg init, pb restore and pitr. The help for do pgsql-user and do pgsql-db lists their two required operands and optional Ansible arguments. Commands with no operands, such as pig version, omit args. pig context probes only the selected modules. Release and mirror discovery report the endpoint selected for that call. Automation reference

Recovery on hosts with several instances or repositories

PIG reads the first pg*-path in the selected stanza in the main pgBackRest configuration file. A preceding pg2-path can therefore select another instance. For pb restore, pass the intended -D and check the plan. For in-place PITR, also check the managed directory and which instance the local patroni service controls. Restore targets · Managed directory

Pass the same -s and -r to pb expire for the preview and execution. Without -r, the plan’s affects field can show repo1 while pgBackRest applies expiration across configured repositories. Backup expiration

Build and maintenance

The source requires Go 1.27.4. GoReleaser moves from 2.20.1 to 2.20.3, pgx from 5.12.0 to 5.13.0 and JWT from 5.3.1 to 5.4.0. PIG’s direct YAML handling uses go.yaml.in/yaml/v4. Command implementations now share PostgreSQL version and platform rules, database-user and path handling, archive extraction and structured error reporting. The result and plan writers propagate output-write failures. Rendering a plan leaves the original value available for reuse. Saving a license preserves unrelated YAML documents and supplementary settings.

Tests now isolate environment and flags between invocations and exercise package and command boundaries under shuffled execution. Both CI and the release workflow check the bundled signing certificates with python3 bin/repo-keys.py. The repo-copy and repo-upload Make targets use the single ext/data/repo.yml catalog. The bundled kube certificate expires on December 29, 2026. Its renewal requires a binary carrying the publisher’s renewed certificate. Signing key maintenance

All 98 catalog version changes

This table matches existing records by id and compares their version fields. The inputs are available with git show v1.11.0:cli/ext/assets/extension.csv and git show v1.12.0:cli/ext/assets/extension.csv. Native package revisions and availability vary by platform. The source comparison also includes changes to dependencies, package names, sources and availability. Compare v1.11.0 with the 1.12.0 source

Extension v1.11.0 catalog v1.12.0 catalog
aux_mysql 1.5 2.0
biscuit 3.1.0 3.1.1
btree_gin 1.3 1.4
btree_gist 1.8 1.9
ddlx 0.31 0.32
decoderbufs 3.7.0 3.7.1
documentdb 1.0 1.2
documentdb_core 1.0 1.2
documentdb_extended_rum 1.0 1.2
edtf_postgres 1.3.2 2.0.0
fsm_core 1.1.0 1.2.0
kafgres 0.3.2 0.3.3
logerrors 2.1.5 2.1.6
macavity 0.2.0 0.2.1
mobilitydb 1.3.1 1.3.2
mobilitydb_datagen 1.3.1 1.3.2
mongo_fdw 5.5.3 5.6.0
mysql_fdw 2.9.3 2.10.0
orafce 4.17.1 4.17.3
pg_agent_gate 0.4.1 0.4.4
pg_background 2.0.4 2.0.5
pg_buffercache 1.6 1.7
pg_cardano 1.2.0 1.2.1
pg_dbms_metadata 1.0.0 1.1.0
pg_duckdb 1.2.0 1.2.2
pg_eviltransform 0.0.7 0.0.9
pg_extension_base 3.6 3.7
pg_extension_updater 3.6 3.7
pg_fts 1.16.0 1.18.1
pg_grammar_guard 0.4.9 0.4.10
pg_hint_plan 1.8.1 1.9.0
pg_improv 0.14.0 0.15.0
pg_integrity_checksums 2.2.0 2.9.2
pg_lake 3.6 3.7
pg_lake_copy 3.6 3.7
pg_lake_engine 3.6 3.7
pg_lake_iceberg 3.6 3.7
pg_lake_table 3.6 3.7
pg_later 0.4.0 0.5.0
pg_living_assertions 0.5.10 0.5.11
pg_map 3.6 3.7
pg_mentat 1.20.0 1.22.0
pg_mooncake 0.3.0 0.3.4
pg_nanotime 0.3.0 0.4.0
pg_orca 1.0.0 1.1.0
pg_parquet 0.5.1 0.6.2
pg_partman 5.5.0 5.5.1
pg_permissions 1.4.1 1.6
pg_pinyin 0.0.8 0.0.9
pg_regresql 2.1.0 2.2.1
pg_render 0.1.3 0.1.4
pg_search 0.26.6 0.27.1
pg_squeeze 1.9.4 1.9.6
pg_stat_ch 0.4.0 0.4.2
pg_stat_monitor 2.4.0 2.4.1
pg_stat_statements 1.12 1.13
pg_statecharts 0.1.0 0.2.0
pg_statecharts_dev 0.1.0 0.2.0
pg_strict 1.0.5 1.1.0
pg_tde 2.2.2 2.3.0
pg_textsearch 1.5.1 1.6.0
pg_tokenizer 1.1.0 1.3.0
pg_tre 4.6.2 4.6.6
pg_turbovec 2.15.0 2.16.4
pg_uuidv7 1.7.0 1.8.0
pg_vectorsearch 0.1.0 0.2.0
pg_when 0.1.10 0.1.11
pgactive 2.1.9 2.1.10
pgaudit 18.0 19.0
pgclone 4.4.2 4.10.0
pglite_fusion 0.0.7 0.0.8
pgmq 1.13.1 1.13.2
pgrdf 0.6.40 0.6.41
pgrouting 4.0.2 4.0.3
pgs3 0.1.1 0.1.2
pgx_ulid 0.2.3 0.3.0
pldbgapi 1.10 1.11
plpgsql_check 2.10 2.11
plr 8.4.8.10 8.4.8.12
plx 2.0.1 3.1.0
postgres_fdw 1.2 1.3
pre_prepare 0.9 0.10
provsql 1.13.1 1.14.0
rdkit 202609.2 202609.3
repmgr 5.5.1 5.5.2
semver 0.42.0 0.43.0
snowflake 2.6.0 2.6.1
spock 5.0.13 5.0.15
sslutils 1.4.1 1.4.2
supautils 4.0.0 4.0.1
timescaledb 2.31.0 2.32.1
timescaledb_toolkit 1.27.0 1.29.0
tzf 0.3.1 0.4.0
uint128 1.2.0 1.4.0
ulak 0.2.0 0.3.0
unit 7.10 7.11
vchord 1.3.0 1.5.0
vchord_bm25 1.1.0 1.3.0

SHA-256 checksums

Download asset
FileChecksum
pig-1.12.0-1.aarch64.rpm Linuxarm64SHA-256 41378d3c…a5f0
pig-1.12.0-1.x86_64.rpm Linuxamd64SHA-256 bf392788…e505
pig-v1.12.0.darwin-amd64.tar.gz macOSamd64SHA-256 ce209070…cdb3
pig-v1.12.0.darwin-arm64.tar.gz macOSarm64SHA-256 c48c2b81…90f3
pig-v1.12.0.linux-amd64.tar.gz Linuxamd64SHA-256 d835d426…b2f8
pig-v1.12.0.linux-arm64.tar.gz Linuxarm64SHA-256 636d8f37…e463
pig_1.12.0-1_amd64.deb Linuxamd64SHA-256 ed0c2e45…e685
pig_1.12.0-1_arm64.deb Linuxarm64SHA-256 a89b8cad…2840