百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pig

> 数据库
开源

PostgreSQL 扩展包管理器

196 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

PostgreSQL 扩展包管理器

PIG

PIG is a self-contained PostgreSQL package manager and operations CLI. It resolves PostgreSQL kernels and extensions to native APT/DNF packages, manages package repositories, builds extension packages, and provides selected PostgreSQL and Pigsty workflows.

  • Website:
  • Documentation:
  • Design records:
  • Release notes:
  • Extension catalog:

The website is the canonical documentation source. This repository keeps source code, tests, packaging metadata, and only the short project entry point you are reading now.

Install

On a supported RPM or DEB Linux distribution:

bash
curl -fsSL https://repo.pigsty.io/pig | bash

For mainland China:

bash
curl -fsSL https://repo.pigsty.cc/pig | bash

Release RPM, DEB, Linux, and macOS archives are available from GitHub Releases. See the current installation guide for package names, checksums, upgrades, and removal.

Quick start

bash
pig repo set                        # configure PostgreSQL package repositories
pig install pg18                    # install PostgreSQL 18 packages
pig ext list duck                   # search the extension catalog
pig install pg_duckdb vector        # install extension packages
pig status                          # inspect the current host

PIG installs host packages. Extension-specific preload, restart, CREATE EXTENSION, and SQL upgrade steps remain the operator's responsibility. Follow the extension's own documentation and the PIG getting-started guide.

Command families

Command Purpose Reference
pig repo Configure and inspect APT/DNF repositories repo
pig ext Search and manage PostgreSQL extension packages ext
pig build Build PostgreSQL extensions from source build
pig install Install translated aliases or native package names commands
pig sty Initialize and operate a Pigsty controller sty
pig inventory Inspect, edit, validate, and exchange Pigsty Inventory inventory
pig do Run bounded Pigsty administrative playbooks do
pig pg Operate a local PostgreSQL instance pg
pig pt Run Patronictl transparently with local helpers pt
pig pe Inspect and reload pg_exporter pe
pig pb Run pgBackRest backup and restore primitives pb
pig pitr Run the orchestrated PITR workflow pitr

Run pig help COMMAND for the command's embedded help. Use the linked website pages for the maintained bilingual reference and the Design Records for the reasoning behind major contracts.

Development

PIG is written in Go. Read AGENTS.md before changing the Cobra command layer.

bash
go test ./...
go vet ./...
make build
make docs-check                    # validate the sibling pig.pgsty.com checkout

Keep Cobra entry points in cmd/, concrete command behavior in cli/*, and shared foundations in internal/*. Do not add a local docs/ tree: current documentation and design history belong in the dedicated pig.pgsty.com repository. Override DOCS_DIR when that checkout is not at ../pig.pgsty.com.

License

Copyright 2018-2026 Ruohang Feng. Licensed under the Apache License 2.0.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goclidebianextensioninstaller

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库