pagevis
Visualise database pages in ascii code
Repository
hollobon/pagevis
https://github.com/hollobon/pagevis
Source
pagevis-0.1.tar.gz
pagevis-0.1.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 6860 | pagevis | No | No | No | Yes | No | Yes | - |
| Related | pg_buffercache pageinspect toastinfo pg_visibility pg_freespacemap pgstattuple pgfincore pgcozy pg_prewarm |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.1 | 1817161514 | pagevis | - |
| RPM | PIGSTY | 0.1 | 1817161514 | pagevis_$v | - |
| DEB | PIGSTY | 0.1 | 1817161514 | postgresql-$v-pagevis | - |
Build
You can build the RPM / DEB packages for pagevis using pig build:
Install
You can install pagevis directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
pagevis provides an ASCII-graphical representation of the contents of a PostgreSQL database page. It requires the pageinspect extension.
Function
Output Characters
| Character | Meaning |
|---|---|
P | Page header |
U | Unused line pointer |
N | Normal line pointer |
R | Redirect line pointer |
D | Dead line pointer |
| (space) | Free space (the “hole”) |
[n] | Tuple number (overlaid on tuple header) |
H | Tuple header |
# | Tuple data |
- | Tuple invisible to current transaction (dead) |
. | Inter-tuple padding |
Example
The page header (P) and line pointers (N) appear at the start, free space in the middle, and tuples grow from the end of the page backward. The page is full when no more space remains between line pointers and tuples.
Requires superuser access (uses pageinspect’s get_raw_page).
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)