git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 8182455) | patch
pg_overexplain: Additional EXPLAIN options for debugging.
2025年3月26日 17:52:21 +0000 (13:52 -0400)
2025年3月26日 17:52:21 +0000 (13:52 -0400)
commit 8d5ceb113e3f7ddb627bd40b26438a9d2fa05512
pg_overexplain: Additional EXPLAIN options for debugging.

There's a fair amount of information in the Plan and PlanState trees
that isn't printed by any existing EXPLAIN option. This means that,
when working on the planner, it's often necessary to rely on facilities
such as debug_print_plan, which produce excessively voluminous
output. Hence, use the new EXPLAIN extension facilities to implement
EXPLAIN (DEBUG) and EXPLAIN (RANGE_TABLE) as extensions to the core
EXPLAIN facility.

A great deal more could be done here, and the specific choices about
what to print and how are definitely arguable, but this is at least
a starting point for discussion and a jumping-off point for possible
future improvements.

Reviewed-by: Sami Imseih <samimseih@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviweed-by: Andrei Lepikhov <lepihov@gmail.com> (who didn't like it)
Discussion: http://postgr.es/m/CA+TgmoZfvQUBWQ2P8iO30jywhfEAKyNzMZSR+uc2xr9PZBw6eQ@mail.gmail.com
12 files changed:
contrib/Makefile diff | blob | blame | history
contrib/meson.build diff | blob | blame | history
contrib/pg_overexplain/.gitignore [new file with mode: 0644] blob
contrib/pg_overexplain/Makefile [new file with mode: 0644] blob
contrib/pg_overexplain/expected/pg_overexplain.out [new file with mode: 0644] blob
contrib/pg_overexplain/meson.build [new file with mode: 0644] blob
contrib/pg_overexplain/pg_overexplain.c [new file with mode: 0644] blob
contrib/pg_overexplain/sql/pg_overexplain.sql [new file with mode: 0644] blob
doc/src/sgml/contrib.sgml diff | blob | blame | history
doc/src/sgml/filelist.sgml diff | blob | blame | history
doc/src/sgml/pgoverexplain.sgml [new file with mode: 0644] blob
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /