Skip to content

explain_ui

easily jump into a visual plan UI for any SQL query

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

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
6540explain_uipg_explain_ui0.0.2STATUnknownRust
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d--NoYesNoYesnono
no valid license, distribution suspend

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
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
PackageVersionOSORGSIZEFile URL
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
PackageVersionOSORGSIZEFile URL
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
PackageVersionOSORGSIZEFile URL
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
PackageVersionOSORGSIZEFile URL
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
PackageVersionOSORGSIZEFile URL
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

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 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 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.

Table reader