uri
URI数据类型
概览
| 扩展包名 | 版本 | 分类 | 许可证 | 语言 |
|---|---|---|---|---|
pg_uri | 1.20251029 | TYPE | PostgreSQL | C |
| ID | 扩展名 | Bin | Lib | Load | Create | Trust | Reloc | 模式 |
|---|---|---|---|---|---|---|---|---|
| 3800 | uri | 否 | 是 | 否 | 是 | 否 | 是 | - |
| 相关扩展 | emailaddr pg_html5_email_address url_encode ip4r prefix asn1oid pg_smtp_client pg_utl_smtp omni_email isn |
|---|
+int flag
版本
| 类型 | 仓库 | 版本 | PG 大版本 | 包名 | 依赖 |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.20251029 | 1817161514 | pg_uri | - |
| RPM | PIGSTY | 1.20251029 | 1817161514 | pguri_$v | - |
| DEB | PIGSTY | 1.20251029 | 1817161514 | postgresql-$v-pg-uri | - |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 |
| el8.aarch64 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 |
| el9.x86_64 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 |
| el9.aarch64 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 | PGDG 1.20251029 |
| el10.x86_64 | |||||
| el10.aarch64 | |||||
| d12.x86_64 | PIGSTY 1.20251029 d12.x86_64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~bookworm_amd64.deb
| PIGSTY 1.20251029 d12.x86_64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~bookworm_amd64.deb
| PIGSTY 1.20251029 d12.x86_64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~bookworm_amd64.deb
| PIGSTY 1.20251029 d12.x86_64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~bookworm_amd64.deb
| PIGSTY 1.20251029 d12.x86_64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~bookworm_amd64.deb
|
| d12.aarch64 | PIGSTY 1.20251029 d12.aarch64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~bookworm_arm64.deb
| PIGSTY 1.20251029 d12.aarch64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~bookworm_arm64.deb
| PIGSTY 1.20251029 d12.aarch64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~bookworm_arm64.deb
| PIGSTY 1.20251029 d12.aarch64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~bookworm_arm64.deb
| PIGSTY 1.20251029 d12.aarch64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~bookworm_arm64.deb
|
| d13.x86_64 | PIGSTY 1.20251029 d13.x86_64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~trixie_amd64.deb
| PIGSTY 1.20251029 d13.x86_64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~trixie_amd64.deb
| PIGSTY 1.20251029 d13.x86_64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~trixie_amd64.deb
| PIGSTY 1.20251029 d13.x86_64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~trixie_amd64.deb
| PIGSTY 1.20251029 d13.x86_64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~trixie_amd64.deb
|
| d13.aarch64 | PIGSTY 1.20251029 d13.aarch64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~trixie_arm64.deb
| PIGSTY 1.20251029 d13.aarch64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~trixie_arm64.deb
| PIGSTY 1.20251029 d13.aarch64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~trixie_arm64.deb
| PIGSTY 1.20251029 d13.aarch64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~trixie_arm64.deb
| PIGSTY 1.20251029 d13.aarch64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~trixie_arm64.deb
|
| u22.x86_64 | PIGSTY 1.20251029 u22.x86_64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~jammy_amd64.deb
| PIGSTY 1.20251029 u22.x86_64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~jammy_amd64.deb
| PIGSTY 1.20251029 u22.x86_64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~jammy_amd64.deb
| PIGSTY 1.20251029 u22.x86_64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~jammy_amd64.deb
| PIGSTY 1.20251029 u22.x86_64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~jammy_amd64.deb
|
| u22.aarch64 | PIGSTY 1.20251029 u22.aarch64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~jammy_arm64.deb
| PIGSTY 1.20251029 u22.aarch64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~jammy_arm64.deb
| PIGSTY 1.20251029 u22.aarch64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~jammy_arm64.deb
| PIGSTY 1.20251029 u22.aarch64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~jammy_arm64.deb
| PIGSTY 1.20251029 u22.aarch64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~jammy_arm64.deb
|
| u24.x86_64 | PIGSTY 1.20251029 u24.x86_64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~noble_amd64.deb
| PIGSTY 1.20251029 u24.x86_64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~noble_amd64.deb
| PIGSTY 1.20251029 u24.x86_64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~noble_amd64.deb
| PIGSTY 1.20251029 u24.x86_64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~noble_amd64.deb
| PIGSTY 1.20251029 u24.x86_64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~noble_amd64.deb
|
| u24.aarch64 | PIGSTY 1.20251029 u24.aarch64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~noble_arm64.deb
| PIGSTY 1.20251029 u24.aarch64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~noble_arm64.deb
| PIGSTY 1.20251029 u24.aarch64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~noble_arm64.deb
| PIGSTY 1.20251029 u24.aarch64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~noble_arm64.deb
| PIGSTY 1.20251029 u24.aarch64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~noble_arm64.deb
|
| u26.x86_64 | PIGSTY 1.20251029 u26.x86_64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~resolute_amd64.deb
| PIGSTY 1.20251029 u26.x86_64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~resolute_amd64.deb
| PIGSTY 1.20251029 u26.x86_64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~resolute_amd64.deb
| PIGSTY 1.20251029 u26.x86_64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~resolute_amd64.deb
| PIGSTY 1.20251029 u26.x86_64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~resolute_amd64.deb
|
| u26.aarch64 | PIGSTY 1.20251029 u26.aarch64.pg18 : postgresql-18-pg-uri postgresql-18-pg-uri_1.20251029-1PIGSTY~resolute_arm64.deb
| PIGSTY 1.20251029 u26.aarch64.pg17 : postgresql-17-pg-uri postgresql-17-pg-uri_1.20251029-1PIGSTY~resolute_arm64.deb
| PIGSTY 1.20251029 u26.aarch64.pg16 : postgresql-16-pg-uri postgresql-16-pg-uri_1.20251029-1PIGSTY~resolute_arm64.deb
| PIGSTY 1.20251029 u26.aarch64.pg15 : postgresql-15-pg-uri postgresql-15-pg-uri_1.20251029-1PIGSTY~resolute_arm64.deb
| PIGSTY 1.20251029 u26.aarch64.pg14 : postgresql-14-pg-uri postgresql-14-pg-uri_1.20251029-1PIGSTY~resolute_arm64.deb
|
构建
您可以使用 pig build 命令构建 pg_uri 扩展的 RPM / DEB 包:
安装
您可以直接安装 pg_uri 扩展包的预置二进制包,首先确保 PGDG 和 PIGSTY 仓库已经添加并启用:
使用 pig 或者是 apt/yum/dnf 安装扩展:
安装
pig
dnf
apt
创建扩展:
用法
uri 扩展提供了一种用于存储 URI 的数据类型,支持 RFC 3986 语法验证、组件提取函数和人性化排序。
组件提取函数
| 函数 | 返回类型 | 描述 |
|---|---|---|
uri_scheme(uri) | text | 协议(http、ftp、mailto) |
uri_userinfo(uri) | text | 用户信息;不存在时返回 NULL |
uri_host(uri) | text | 主机名或 IP 地址 |
uri_host_inet(uri) | inet | IP 主机转为 inet 类型;非 IP 时返回 NULL |
uri_port(uri) | integer | 端口号;未指定时返回 NULL |
uri_path(uri) | text | 路径组件(不会为 NULL) |
uri_path_array(uri) | text[] | 按 / 分割的路径 |
uri_query(uri) | text | 查询字符串;不存在时返回 NULL |
uri_fragment(uri) | text | 片段标识;不存在时返回 NULL |
工具函数
示例
这个页面对您有帮助吗?
感谢反馈,我们会据此改进这篇文档。
哪里没有解决?(可选)