跳转到主要内容

explain_ui

快速跳转至PEV查阅可视化执行计划

pg_explain_ui · 快速跳转至PEV查阅可视化执行计划

概览

ID扩展软件包版本类别许可证编程语言
6540explain_uipg_explain_ui0.0.2STATUnknownRust
属性可执行文件动态库需要预加载需要建扩展可迁移可信
--s-d--否是否是否否
no valid license, distribution suspend

软件包

类型仓库版本兼容的 PostgreSQL 大版本包名模式依赖
EXTPIGSTY0.0.219 18 17 16 15pg_explain_ui-
RPMPIGSTY0.0.219 18 17 16 15pg_explain_ui_$v-
DEBPIGSTY0.0.219 18 17 16 15postgresql-$v-pg-explain-ui-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
el8.aarch64N/APIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
el9.x86_64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
el9.aarch64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
el10.x86_64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
el10.aarch64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
d12.x86_64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
d12.aarch64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
d13.x86_64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
d13.aarch64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
u22.x86_64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
u22.aarch64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
u24.x86_64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
u24.aarch64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
u26.x86_64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
u26.aarch64PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2PIGSTY 0.0.2
软件包版本平台仓库大小下载
pg_explain_ui_190.0.2el9.x86_64pigsty2.2 MiBpg_explain_ui_19-0.0.2-5PGSTY.el9.x86_64.rpm
pg_explain_ui_190.0.2el9.aarch64pigsty2.2 MiBpg_explain_ui_19-0.0.2-5PGSTY.el9.aarch64.rpm
pg_explain_ui_190.0.2el10.x86_64pigsty2.2 MiBpg_explain_ui_19-0.0.2-5PGSTY.el10.x86_64.rpm
pg_explain_ui_190.0.2el10.aarch64pigsty2.2 MiBpg_explain_ui_19-0.0.2-5PGSTY.el10.aarch64.rpm
postgresql-19-pg-explain-ui0.0.2d12.x86_64pigsty1.5 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~bookworm_amd64.deb
postgresql-19-pg-explain-ui0.0.2d12.aarch64pigsty1.4 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~bookworm_arm64.deb
postgresql-19-pg-explain-ui0.0.2d13.x86_64pigsty1.5 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~trixie_amd64.deb
postgresql-19-pg-explain-ui0.0.2d13.aarch64pigsty1.4 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~trixie_arm64.deb
postgresql-19-pg-explain-ui0.0.2u22.x86_64pigsty1.7 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~jammy_amd64.deb
postgresql-19-pg-explain-ui0.0.2u22.aarch64pigsty1.6 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~jammy_arm64.deb
postgresql-19-pg-explain-ui0.0.2u24.x86_64pigsty1.7 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~noble_amd64.deb
postgresql-19-pg-explain-ui0.0.2u24.aarch64pigsty1.6 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~noble_arm64.deb
postgresql-19-pg-explain-ui0.0.2u26.x86_64pigsty1.7 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~resolute_amd64.deb
postgresql-19-pg-explain-ui0.0.2u26.aarch64pigsty1.6 MiBpostgresql-19-pg-explain-ui_0.0.2-5PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pg_explain_ui_180.0.2el8.x86_64pigsty2.0 MiBpg_explain_ui_18-0.0.2-4PGSTY.el8.x86_64.rpm
pg_explain_ui_180.0.2el8.aarch64pigsty1.8 MiBpg_explain_ui_18-0.0.2-4PGSTY.el8.aarch64.rpm
pg_explain_ui_180.0.2el9.x86_64pigsty2.2 MiBpg_explain_ui_18-0.0.2-5PGSTY.el9.x86_64.rpm
pg_explain_ui_180.0.2el9.aarch64pigsty2.2 MiBpg_explain_ui_18-0.0.2-5PGSTY.el9.aarch64.rpm
pg_explain_ui_180.0.2el10.x86_64pigsty2.2 MiBpg_explain_ui_18-0.0.2-5PGSTY.el10.x86_64.rpm
pg_explain_ui_180.0.2el10.aarch64pigsty2.2 MiBpg_explain_ui_18-0.0.2-5PGSTY.el10.aarch64.rpm
postgresql-18-pg-explain-ui0.0.2d12.x86_64pigsty1.5 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~bookworm_amd64.deb
postgresql-18-pg-explain-ui0.0.2d12.aarch64pigsty1.4 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~bookworm_arm64.deb
postgresql-18-pg-explain-ui0.0.2d13.x86_64pigsty1.5 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~trixie_amd64.deb
postgresql-18-pg-explain-ui0.0.2d13.aarch64pigsty1.4 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~trixie_arm64.deb
postgresql-18-pg-explain-ui0.0.2u22.x86_64pigsty1.7 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~jammy_amd64.deb
postgresql-18-pg-explain-ui0.0.2u22.aarch64pigsty1.6 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~jammy_arm64.deb
postgresql-18-pg-explain-ui0.0.2u24.x86_64pigsty1.7 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~noble_amd64.deb
postgresql-18-pg-explain-ui0.0.2u24.aarch64pigsty1.6 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~noble_arm64.deb
postgresql-18-pg-explain-ui0.0.2u26.x86_64pigsty1.7 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~resolute_amd64.deb
postgresql-18-pg-explain-ui0.0.2u26.aarch64pigsty1.6 MiBpostgresql-18-pg-explain-ui_0.0.2-5PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pg_explain_ui_170.0.2el8.x86_64pigsty1.9 MiBpg_explain_ui_17-0.0.2-4PGSTY.el8.x86_64.rpm
pg_explain_ui_170.0.2el8.aarch64pigsty1.8 MiBpg_explain_ui_17-0.0.2-4PGSTY.el8.aarch64.rpm
pg_explain_ui_170.0.2el9.x86_64pigsty2.2 MiBpg_explain_ui_17-0.0.2-5PGSTY.el9.x86_64.rpm
pg_explain_ui_170.0.2el9.aarch64pigsty2.2 MiBpg_explain_ui_17-0.0.2-5PGSTY.el9.aarch64.rpm
pg_explain_ui_170.0.2el10.x86_64pigsty2.2 MiBpg_explain_ui_17-0.0.2-5PGSTY.el10.x86_64.rpm
pg_explain_ui_170.0.2el10.aarch64pigsty2.2 MiBpg_explain_ui_17-0.0.2-5PGSTY.el10.aarch64.rpm
postgresql-17-pg-explain-ui0.0.2d12.x86_64pigsty1.5 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~bookworm_amd64.deb
postgresql-17-pg-explain-ui0.0.2d12.aarch64pigsty1.4 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~bookworm_arm64.deb
postgresql-17-pg-explain-ui0.0.2d13.x86_64pigsty1.5 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~trixie_amd64.deb
postgresql-17-pg-explain-ui0.0.2d13.aarch64pigsty1.4 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~trixie_arm64.deb
postgresql-17-pg-explain-ui0.0.2u22.x86_64pigsty1.7 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~jammy_amd64.deb
postgresql-17-pg-explain-ui0.0.2u22.aarch64pigsty1.6 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~jammy_arm64.deb
postgresql-17-pg-explain-ui0.0.2u24.x86_64pigsty1.7 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~noble_amd64.deb
postgresql-17-pg-explain-ui0.0.2u24.aarch64pigsty1.6 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~noble_arm64.deb
postgresql-17-pg-explain-ui0.0.2u26.x86_64pigsty1.7 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~resolute_amd64.deb
postgresql-17-pg-explain-ui0.0.2u26.aarch64pigsty1.6 MiBpostgresql-17-pg-explain-ui_0.0.2-5PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pg_explain_ui_160.0.2el8.x86_64pigsty1.9 MiBpg_explain_ui_16-0.0.2-4PGSTY.el8.x86_64.rpm
pg_explain_ui_160.0.2el8.aarch64pigsty1.8 MiBpg_explain_ui_16-0.0.2-4PGSTY.el8.aarch64.rpm
pg_explain_ui_160.0.2el9.x86_64pigsty2.2 MiBpg_explain_ui_16-0.0.2-5PGSTY.el9.x86_64.rpm
pg_explain_ui_160.0.2el9.aarch64pigsty2.2 MiBpg_explain_ui_16-0.0.2-5PGSTY.el9.aarch64.rpm
pg_explain_ui_160.0.2el10.x86_64pigsty2.2 MiBpg_explain_ui_16-0.0.2-5PGSTY.el10.x86_64.rpm
pg_explain_ui_160.0.2el10.aarch64pigsty2.2 MiBpg_explain_ui_16-0.0.2-5PGSTY.el10.aarch64.rpm
postgresql-16-pg-explain-ui0.0.2d12.x86_64pigsty1.5 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~bookworm_amd64.deb
postgresql-16-pg-explain-ui0.0.2d12.aarch64pigsty1.4 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~bookworm_arm64.deb
postgresql-16-pg-explain-ui0.0.2d13.x86_64pigsty1.5 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~trixie_amd64.deb
postgresql-16-pg-explain-ui0.0.2d13.aarch64pigsty1.4 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~trixie_arm64.deb
postgresql-16-pg-explain-ui0.0.2u22.x86_64pigsty1.7 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~jammy_amd64.deb
postgresql-16-pg-explain-ui0.0.2u22.aarch64pigsty1.6 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~jammy_arm64.deb
postgresql-16-pg-explain-ui0.0.2u24.x86_64pigsty1.7 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~noble_amd64.deb
postgresql-16-pg-explain-ui0.0.2u24.aarch64pigsty1.6 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~noble_arm64.deb
postgresql-16-pg-explain-ui0.0.2u26.x86_64pigsty1.7 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~resolute_amd64.deb
postgresql-16-pg-explain-ui0.0.2u26.aarch64pigsty1.6 MiBpostgresql-16-pg-explain-ui_0.0.2-5PGSTY~resolute_arm64.deb
软件包版本平台仓库大小下载
pg_explain_ui_150.0.2el8.x86_64pigsty1.9 MiBpg_explain_ui_15-0.0.2-4PGSTY.el8.x86_64.rpm
pg_explain_ui_150.0.2el8.aarch64pigsty1.8 MiBpg_explain_ui_15-0.0.2-4PGSTY.el8.aarch64.rpm
pg_explain_ui_150.0.2el9.x86_64pigsty2.2 MiBpg_explain_ui_15-0.0.2-5PGSTY.el9.x86_64.rpm
pg_explain_ui_150.0.2el9.aarch64pigsty2.2 MiBpg_explain_ui_15-0.0.2-5PGSTY.el9.aarch64.rpm
pg_explain_ui_150.0.2el10.x86_64pigsty2.2 MiBpg_explain_ui_15-0.0.2-5PGSTY.el10.x86_64.rpm
pg_explain_ui_150.0.2el10.aarch64pigsty2.2 MiBpg_explain_ui_15-0.0.2-5PGSTY.el10.aarch64.rpm
postgresql-15-pg-explain-ui0.0.2d12.x86_64pigsty1.5 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~bookworm_amd64.deb
postgresql-15-pg-explain-ui0.0.2d12.aarch64pigsty1.4 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~bookworm_arm64.deb
postgresql-15-pg-explain-ui0.0.2d13.x86_64pigsty1.5 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~trixie_amd64.deb
postgresql-15-pg-explain-ui0.0.2d13.aarch64pigsty1.4 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~trixie_arm64.deb
postgresql-15-pg-explain-ui0.0.2u22.x86_64pigsty1.7 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~jammy_amd64.deb
postgresql-15-pg-explain-ui0.0.2u22.aarch64pigsty1.6 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~jammy_arm64.deb
postgresql-15-pg-explain-ui0.0.2u24.x86_64pigsty1.7 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~noble_amd64.deb
postgresql-15-pg-explain-ui0.0.2u24.aarch64pigsty1.6 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~noble_arm64.deb
postgresql-15-pg-explain-ui0.0.2u26.x86_64pigsty1.7 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~resolute_amd64.deb
postgresql-15-pg-explain-ui0.0.2u26.aarch64pigsty1.6 MiBpostgresql-15-pg-explain-ui_0.0.2-5PGSTY~resolute_arm64.deb

源码

pig build pkg pg_explain_ui;		# build rpm/deb

安装

启用 PGDG 和 PIGSTY 仓库并更新缓存。

pig repo add pgsql -u   # add both repo and update cache

使用 pig 安装扩展。

pig install pg_explain_ui;		# install by package name
pig install explain_ui;		# install by extension name

pig install explain_ui -v 19;   # install for PG 19
pig install explain_ui -v 18;   # install for PG 18
pig install explain_ui -v 17;   # install for PG 17
pig install explain_ui -v 16;   # install for PG 16
pig install explain_ui -v 15;   # install for PG 15

在数据库中创建扩展。

CREATE EXTENSION explain_ui;

用法

explain_ui: 从 SQL 生成可视化执行计划 URL

explain_ui 提供一个函数,接收 SQL 查询,对其运行 EXPLAIN,并将计划上传到 Dalibo 的执行计划可视化工具,返回一个可分享的 URL。

函数

SELECT explain_ui($$
  SELECT b.title, a.name, p.name
  FROM books b
  INNER JOIN authors a ON b.author_id = a.author_id
  INNER JOIN publishers p ON b.publisher_id = p.publisher_id
  ORDER BY b.publication_date DESC
$$);

                    explain_ui
--------------------------------------------------
 https://explain.dalibo.com/plan/ccg2e5fedd913bb7

该函数:

  1. 对提供的 SQL 查询运行 EXPLAIN (FORMAT JSON)
  2. 将计划上传到 explain.dalibo.com
  3. 返回可视化计划的 URL

可视化工具基于 pev2(PostgreSQL Explain Visualizer 2),提供查询执行计划的交互式图形化视图。

表格阅读器