pgexplainjson
pgexplainjson renders PostgreSQL EXPLAIN (ANALYZE, FORMAT JSON) output with the generic rendering helpers.
go run ./examples/pgexplainjson < explain.json
Options:
-compact: use compact tree edges.
-wrap-width=N: wrap rendered operator text at the given total width.
The ID column is generated by this example in preorder traversal. PostgreSQL JSON does not provide stable plan-node IDs; the generated IDs only anchor the predicate appendix.
This example intentionally keeps PostgreSQL JSON parsing local to the example. The shared packages only provide generic tree, table, and predicate rendering.