explain_ui

explain_ui

pg_explain_ui : easily jump into a visual plan UI for any SQL query

Overview

ID Extension Package Version Category License Language
6540
explain_ui
pg_explain_ui
0.0.2
STAT
PostgreSQL
Rust
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--s-d--
No
Yes
No
Yes
no
no
Relationships
See Also
pg_show_plans
auto_explain
pg_stat_statements
pg_hint_plan
pg_qualstats
pg_store_plans
pg_profile
powa

manual updated pgrx by Vonng

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT
PIGSTY
0.0.2
18
17
16
15
14
pg_explain_ui -
RPM
PIGSTY
0.0.2
18
17
16
15
14
pg_explain_ui_$v -
DEB
PIGSTY
0.0.2
18
17
16
15
14
postgresql-$v-pg-explain-ui -
Linux / PG PG18 PG17 PG16 PG15 PG14
el8.x86_64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
el8.aarch64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
el9.x86_64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
el9.aarch64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
el10.x86_64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
el10.aarch64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
d12.x86_64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
d12.aarch64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
d13.x86_64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
d13.aarch64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
u22.x86_64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
u22.aarch64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
u24.x86_64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
u24.aarch64
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
PIGSTY 0.0.2
Package Version OS ORG SIZE File URL
pg_explain_ui_18 0.0.2 el8.x86_64 pigsty 1.1 MiB pg_explain_ui_18-0.0.2-1PIGSTY.el8.x86_64.rpm
pg_explain_ui_18 0.0.2 el8.aarch64 pigsty 935.6 KiB pg_explain_ui_18-0.0.2-1PIGSTY.el8.aarch64.rpm
pg_explain_ui_18 0.0.2 el9.x86_64 pigsty 1.1 MiB pg_explain_ui_18-0.0.2-1PIGSTY.el9.x86_64.rpm
pg_explain_ui_18 0.0.2 el9.aarch64 pigsty 988.3 KiB pg_explain_ui_18-0.0.2-1PIGSTY.el9.aarch64.rpm
pg_explain_ui_18 0.0.2 el10.x86_64 pigsty 1.1 MiB pg_explain_ui_18-0.0.2-1PIGSTY.el10.x86_64.rpm
pg_explain_ui_18 0.0.2 el10.aarch64 pigsty 987.6 KiB pg_explain_ui_18-0.0.2-1PIGSTY.el10.aarch64.rpm
postgresql-18-pg-explain-ui 0.0.2 d12.x86_64 pigsty 880.7 KiB postgresql-18-pg-explain-ui_0.0.2-1PIGSTY~bookworm_amd64.deb
postgresql-18-pg-explain-ui 0.0.2 d12.aarch64 pigsty 717.0 KiB postgresql-18-pg-explain-ui_0.0.2-1PIGSTY~bookworm_arm64.deb
postgresql-18-pg-explain-ui 0.0.2 d13.x86_64 pigsty 879.9 KiB postgresql-18-pg-explain-ui_0.0.2-1PIGSTY~trixie_amd64.deb
postgresql-18-pg-explain-ui 0.0.2 d13.aarch64 pigsty 716.6 KiB postgresql-18-pg-explain-ui_0.0.2-1PIGSTY~trixie_arm64.deb
postgresql-18-pg-explain-ui 0.0.2 u22.x86_64 pigsty 981.7 KiB postgresql-18-pg-explain-ui_0.0.2-1PIGSTY~jammy_amd64.deb
postgresql-18-pg-explain-ui 0.0.2 u22.aarch64 pigsty 846.9 KiB postgresql-18-pg-explain-ui_0.0.2-1PIGSTY~jammy_arm64.deb
postgresql-18-pg-explain-ui 0.0.2 u24.x86_64 pigsty 968.9 KiB postgresql-18-pg-explain-ui_0.0.2-1PIGSTY~noble_amd64.deb
postgresql-18-pg-explain-ui 0.0.2 u24.aarch64 pigsty 836.3 KiB postgresql-18-pg-explain-ui_0.0.2-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_explain_ui_17 0.0.2 el8.x86_64 pigsty 1.1 MiB pg_explain_ui_17-0.0.2-1PIGSTY.el8.x86_64.rpm
pg_explain_ui_17 0.0.2 el8.aarch64 pigsty 935.6 KiB pg_explain_ui_17-0.0.2-1PIGSTY.el8.aarch64.rpm
pg_explain_ui_17 0.0.2 el9.x86_64 pigsty 1.1 MiB pg_explain_ui_17-0.0.2-1PIGSTY.el9.x86_64.rpm
pg_explain_ui_17 0.0.2 el9.aarch64 pigsty 989.0 KiB pg_explain_ui_17-0.0.2-1PIGSTY.el9.aarch64.rpm
pg_explain_ui_17 0.0.2 el10.x86_64 pigsty 1.1 MiB pg_explain_ui_17-0.0.2-1PIGSTY.el10.x86_64.rpm
pg_explain_ui_17 0.0.2 el10.aarch64 pigsty 988.7 KiB pg_explain_ui_17-0.0.2-1PIGSTY.el10.aarch64.rpm
postgresql-17-pg-explain-ui 0.0.2 d12.x86_64 pigsty 879.8 KiB postgresql-17-pg-explain-ui_0.0.2-1PIGSTY~bookworm_amd64.deb
postgresql-17-pg-explain-ui 0.0.2 d12.aarch64 pigsty 716.2 KiB postgresql-17-pg-explain-ui_0.0.2-1PIGSTY~bookworm_arm64.deb
postgresql-17-pg-explain-ui 0.0.2 d13.x86_64 pigsty 880.0 KiB postgresql-17-pg-explain-ui_0.0.2-1PIGSTY~trixie_amd64.deb
postgresql-17-pg-explain-ui 0.0.2 d13.aarch64 pigsty 716.9 KiB postgresql-17-pg-explain-ui_0.0.2-1PIGSTY~trixie_arm64.deb
postgresql-17-pg-explain-ui 0.0.2 u22.x86_64 pigsty 981.3 KiB postgresql-17-pg-explain-ui_0.0.2-1PIGSTY~jammy_amd64.deb
postgresql-17-pg-explain-ui 0.0.2 u22.aarch64 pigsty 846.8 KiB postgresql-17-pg-explain-ui_0.0.2-1PIGSTY~jammy_arm64.deb
postgresql-17-pg-explain-ui 0.0.2 u24.x86_64 pigsty 970.2 KiB postgresql-17-pg-explain-ui_0.0.2-1PIGSTY~noble_amd64.deb
postgresql-17-pg-explain-ui 0.0.2 u24.aarch64 pigsty 836.2 KiB postgresql-17-pg-explain-ui_0.0.2-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_explain_ui_16 0.0.2 el8.x86_64 pigsty 1.1 MiB pg_explain_ui_16-0.0.2-1PIGSTY.el8.x86_64.rpm
pg_explain_ui_16 0.0.2 el8.aarch64 pigsty 935.6 KiB pg_explain_ui_16-0.0.2-1PIGSTY.el8.aarch64.rpm
pg_explain_ui_16 0.0.2 el9.x86_64 pigsty 1.1 MiB pg_explain_ui_16-0.0.2-1PIGSTY.el9.x86_64.rpm
pg_explain_ui_16 0.0.2 el9.aarch64 pigsty 988.1 KiB pg_explain_ui_16-0.0.2-1PIGSTY.el9.aarch64.rpm
pg_explain_ui_16 0.0.2 el10.x86_64 pigsty 1.1 MiB pg_explain_ui_16-0.0.2-1PIGSTY.el10.x86_64.rpm
pg_explain_ui_16 0.0.2 el10.aarch64 pigsty 988.7 KiB pg_explain_ui_16-0.0.2-1PIGSTY.el10.aarch64.rpm
postgresql-16-pg-explain-ui 0.0.2 d12.x86_64 pigsty 880.4 KiB postgresql-16-pg-explain-ui_0.0.2-1PIGSTY~bookworm_amd64.deb
postgresql-16-pg-explain-ui 0.0.2 d12.aarch64 pigsty 716.7 KiB postgresql-16-pg-explain-ui_0.0.2-1PIGSTY~bookworm_arm64.deb
postgresql-16-pg-explain-ui 0.0.2 d13.x86_64 pigsty 880.2 KiB postgresql-16-pg-explain-ui_0.0.2-1PIGSTY~trixie_amd64.deb
postgresql-16-pg-explain-ui 0.0.2 d13.aarch64 pigsty 716.3 KiB postgresql-16-pg-explain-ui_0.0.2-1PIGSTY~trixie_arm64.deb
postgresql-16-pg-explain-ui 0.0.2 u22.x86_64 pigsty 979.8 KiB postgresql-16-pg-explain-ui_0.0.2-1PIGSTY~jammy_amd64.deb
postgresql-16-pg-explain-ui 0.0.2 u22.aarch64 pigsty 846.7 KiB postgresql-16-pg-explain-ui_0.0.2-1PIGSTY~jammy_arm64.deb
postgresql-16-pg-explain-ui 0.0.2 u24.x86_64 pigsty 970.4 KiB postgresql-16-pg-explain-ui_0.0.2-1PIGSTY~noble_amd64.deb
postgresql-16-pg-explain-ui 0.0.2 u24.aarch64 pigsty 837.1 KiB postgresql-16-pg-explain-ui_0.0.2-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_explain_ui_15 0.0.2 el8.x86_64 pigsty 1.1 MiB pg_explain_ui_15-0.0.2-1PIGSTY.el8.x86_64.rpm
pg_explain_ui_15 0.0.2 el8.aarch64 pigsty 935.5 KiB pg_explain_ui_15-0.0.2-1PIGSTY.el8.aarch64.rpm
pg_explain_ui_15 0.0.2 el9.x86_64 pigsty 1.1 MiB pg_explain_ui_15-0.0.2-1PIGSTY.el9.x86_64.rpm
pg_explain_ui_15 0.0.2 el9.aarch64 pigsty 987.8 KiB pg_explain_ui_15-0.0.2-1PIGSTY.el9.aarch64.rpm
pg_explain_ui_15 0.0.2 el10.x86_64 pigsty 1.1 MiB pg_explain_ui_15-0.0.2-1PIGSTY.el10.x86_64.rpm
pg_explain_ui_15 0.0.2 el10.aarch64 pigsty 987.8 KiB pg_explain_ui_15-0.0.2-1PIGSTY.el10.aarch64.rpm
postgresql-15-pg-explain-ui 0.0.2 d12.x86_64 pigsty 880.2 KiB postgresql-15-pg-explain-ui_0.0.2-1PIGSTY~bookworm_amd64.deb
postgresql-15-pg-explain-ui 0.0.2 d12.aarch64 pigsty 716.6 KiB postgresql-15-pg-explain-ui_0.0.2-1PIGSTY~bookworm_arm64.deb
postgresql-15-pg-explain-ui 0.0.2 d13.x86_64 pigsty 880.1 KiB postgresql-15-pg-explain-ui_0.0.2-1PIGSTY~trixie_amd64.deb
postgresql-15-pg-explain-ui 0.0.2 d13.aarch64 pigsty 717.1 KiB postgresql-15-pg-explain-ui_0.0.2-1PIGSTY~trixie_arm64.deb
postgresql-15-pg-explain-ui 0.0.2 u22.x86_64 pigsty 979.6 KiB postgresql-15-pg-explain-ui_0.0.2-1PIGSTY~jammy_amd64.deb
postgresql-15-pg-explain-ui 0.0.2 u22.aarch64 pigsty 847.4 KiB postgresql-15-pg-explain-ui_0.0.2-1PIGSTY~jammy_arm64.deb
postgresql-15-pg-explain-ui 0.0.2 u24.x86_64 pigsty 969.8 KiB postgresql-15-pg-explain-ui_0.0.2-1PIGSTY~noble_amd64.deb
postgresql-15-pg-explain-ui 0.0.2 u24.aarch64 pigsty 837.1 KiB postgresql-15-pg-explain-ui_0.0.2-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pg_explain_ui_14 0.0.2 el8.x86_64 pigsty 1.1 MiB pg_explain_ui_14-0.0.2-1PIGSTY.el8.x86_64.rpm
pg_explain_ui_14 0.0.2 el8.aarch64 pigsty 935.5 KiB pg_explain_ui_14-0.0.2-1PIGSTY.el8.aarch64.rpm
pg_explain_ui_14 0.0.2 el9.x86_64 pigsty 1.1 MiB pg_explain_ui_14-0.0.2-1PIGSTY.el9.x86_64.rpm
pg_explain_ui_14 0.0.2 el9.aarch64 pigsty 987.3 KiB pg_explain_ui_14-0.0.2-1PIGSTY.el9.aarch64.rpm
pg_explain_ui_14 0.0.2 el10.x86_64 pigsty 1.1 MiB pg_explain_ui_14-0.0.2-1PIGSTY.el10.x86_64.rpm
pg_explain_ui_14 0.0.2 el10.aarch64 pigsty 987.6 KiB pg_explain_ui_14-0.0.2-1PIGSTY.el10.aarch64.rpm
postgresql-14-pg-explain-ui 0.0.2 d12.x86_64 pigsty 879.2 KiB postgresql-14-pg-explain-ui_0.0.2-1PIGSTY~bookworm_amd64.deb
postgresql-14-pg-explain-ui 0.0.2 d12.aarch64 pigsty 717.2 KiB postgresql-14-pg-explain-ui_0.0.2-1PIGSTY~bookworm_arm64.deb
postgresql-14-pg-explain-ui 0.0.2 d13.x86_64 pigsty 879.9 KiB postgresql-14-pg-explain-ui_0.0.2-1PIGSTY~trixie_amd64.deb
postgresql-14-pg-explain-ui 0.0.2 d13.aarch64 pigsty 716.6 KiB postgresql-14-pg-explain-ui_0.0.2-1PIGSTY~trixie_arm64.deb
postgresql-14-pg-explain-ui 0.0.2 u22.x86_64 pigsty 978.2 KiB postgresql-14-pg-explain-ui_0.0.2-1PIGSTY~jammy_amd64.deb
postgresql-14-pg-explain-ui 0.0.2 u22.aarch64 pigsty 847.2 KiB postgresql-14-pg-explain-ui_0.0.2-1PIGSTY~jammy_arm64.deb
postgresql-14-pg-explain-ui 0.0.2 u24.x86_64 pigsty 969.7 KiB postgresql-14-pg-explain-ui_0.0.2-1PIGSTY~noble_amd64.deb
postgresql-14-pg-explain-ui 0.0.2 u24.aarch64 pigsty 837.8 KiB postgresql-14-pg-explain-ui_0.0.2-1PIGSTY~noble_arm64.deb

Source

pig build pkg pg_explain_ui;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

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

Install this extension with pig:

pig install pg_explain_ui;		# install via package name, for the active PG version
pig install explain_ui;		# install by extension name, for the current active PG version

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
pig install explain_ui -v 14;   # install for PG 14

Create this extension with:

CREATE EXTENSION explain_ui;

Usage

explain_ui: generate visual explain plan URLs from SQL

explain_ui provides a function that takes a SQL query, runs EXPLAIN on it, and uploads the plan to Dalibo’s explain visualizer, returning a shareable URL.

Function

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

The function:

  1. Runs EXPLAIN (FORMAT JSON) on the provided SQL query
  2. Uploads the plan to explain.dalibo.com
  3. Returns a URL to the visual plan representation

The visualizer is built on pev2 (PostgreSQL Explain Visualizer 2), providing an interactive graphical view of query execution plans.

Last updated on