Coming
PostgreSQL
PostgreSQL support is planned. Nothing here works yet; this page says what it will do.
If you drop a PostgreSQL file on the home page today, it is recognised from its bytes (a table or index file, a WAL segment, a pg_dump archive) and you are told what it is. Nothing is uploaded.
What you will drop
A relation file from the data directory: a table or index lives in base/<database oid>/<relfilenode>, which SELECT pg_relation_filepath('my_table') tells you, in 1 GB segments, with _fsm and _vm fork files beside it. Copy it while the server is stopped, or after a CHECKPOINT.
What you will see
- Every 8 KB page: the 24-byte page header (LSN, checksum,
pd_lower,pd_upper,pd_special), the line pointer array, free space and the tuples packed from the end. - Each heap tuple's header:
xmin,xmax,ctidand the infomask bits, which is MVCC made visible: dead rows, HOT chains, frozen tuples. - B-tree index pages: the metapage, levels, sibling links and index tuples.
- The visibility map and free space map forks.
A relation file does not contain its column types (those are in the system catalog), so values will be shown raw unless you paste the table's definition.
EXPLAIN in the browser
PGlite is PostgreSQL compiled to WebAssembly. It runs real EXPLAIN (ANALYZE, FORMAT JSON), so plans can be drawn as trees from Postgres itself, on a sample database, with no server.