buildtestandpackagepostgresqlextensionsinrustwithpgrx
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "buildtestandpackagepostgresqlextensionsinrustwithpgrx" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d27938be6528ae2c6af8b2e0a7091c2f3063447b2fe8157c37bc35fe42612367. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/build-test-and-package-postgresql-extensions-in-rust-with-pgrx before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
When agents need native Rust extension lifecycle for PostgreSQL, use pgrx to perform local builds, test runs, and packaging across PostgreSQL versions.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "Build, test, and package PostgreSQL extensions in Rust with pgrx"
slug: "build-test-and-package-postgresql-extensions-in-rust-with-pgrx"
version: "1.0.0"
displayName: "Build, test, and package PostgreSQL extensions in Rust with pgrx"
summary: "当代理需要用于 PostgreSQL 的原生 Rust 扩展生命周期时,请使用 pgrx,包括本地构建、测试运行以及跨 PostgreSQL 版本的打包。"
license: "MIT"
description: "当代理需要用于 PostgreSQL 的原生 Rust 扩展生命周期时,请使用 pgrx,包括本地构建、测试运行以及跨 PostgreSQL 版本的打包。"
github_stars: 4458
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Developer Tools"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 4458使用 pgrx 在 Rust 中构建、测试和打包 PostgreSQL 扩展
当代理需要用于 PostgreSQL 的原生 Rust 扩展生命周期时,请使用 pgrx,包括本地构建、测试运行以及跨 PostgreSQL 版本的打包。
先决条件
Rust 工具链、PostgreSQL 开发依赖项和 pgrx
安装
使用与您的环境匹配的上游安装或设置路径:
- brew install git icu4c pkg-config
- 在运行 cargo pgrx init 命令之前在命令行中执行
- 项目和旧目录已消失。解决方法是重新运行 cargo pgrx init
- cargo install --locked cargo-pgrx
来自上游的要求和注意事项:
- † PGRX 没有 MSRV 策略,因此可能需要最新稳定版 Rust,可通过 Rustup 获得 在 Mac 上运行 PGRX 需要一些额外的设置。
- 可通过更新 Xcode 和命令行工具来解决。您可能需要操作系统更新
基本用法或入门笔记:
-
cargo pgrx run:在 psql(或 pgcli)中运行您的扩展并进行交互式测试
-
为了解决这个问题,请运行
-
在做任何其他事情之前,安装 系统依赖项。
-
Extracted from upstream docs: https://raw.githubusercontent.com/pgcentralfoundation/pgrx/HEAD/README.md
文档
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 PostgreSQL 扩展的完整生命周期管理(构建、测试、打包)
- 面向 Rust 开发者,解决明确的工程痛点
- 功能闭环完整,实用价值高
Highlights
- 触发词精准,明确指出使用 pgrx 管理 PostgreSQL 扩展生命周期
- 涵盖构建、测试、打包等关键动作,边界清晰
Areas to improve
-
缺少 When to Use 明确章节 Reported severity: Minor
文档未明确划分 When to Use 章节,用户难以快速判断适用场景
Recommendation: 建议添加 When to Use 章节,明确说明适用场景和用户群体
-
步骤划分可更清晰 Reported severity: Minor
安装和使用步骤混合,缺乏明确的 Phase 划分
Recommendation: 建议将文档划分为清晰的 Phase,如 Phase 1: 环境准备, Phase 2: 安装 pgrx, Phase 3: 构建扩展等
Highlights
- frontmatter 完整,包含必要元数据
- 提供了端到端示例(cargo pgrx run)
- 文档结构基本清晰,易于理解
Areas to improve
-
异常处理覆盖不全 Reported severity: Minor
未明确处理所有异常情况(如特定平台失败回退)
Recommendation: 建议补充常见异常处理方案,如平台兼容性问题和依赖安装失败的处理
Highlights
- 工具来源明确(cargo-pgrx),参数正确
- 覆盖了主要系统依赖项说明
- 提供了基本用法的具体命令示例
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 32
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.