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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 5b140dc) | patch
Invent GENERIC_PLAN option for EXPLAIN.
2023年3月24日 21:07:14 +0000 (17:07 -0400)
2023年3月24日 21:07:22 +0000 (17:07 -0400)
commit 3c05284d83b230728e59a25e828992037ef77096
Invent GENERIC_PLAN option for EXPLAIN.

This provides a very simple way to see the generic plan for a
parameterized query. Without this, it's necessary to define
a prepared statement and temporarily change plan_cache_mode,
which is a bit tedious.

One thing that's a bit of a hack perhaps is that we disable
execution-time partition pruning when the GENERIC_PLAN option
is given. That's because the pruning code may attempt to
fetch the value of one of the parameters, which would fail.

Laurenz Albe, reviewed by Julien Rouhaud, Christoph Berg,
Michel Pelletier, Jim Jones, and myself

Discussion: https://postgr.es/m/0a29b954b10b57f0d135fe12aa0909bd41883eb0.camel@cybertec.at
doc/src/sgml/ref/explain.sgml diff | blob | blame | history
src/backend/commands/explain.c diff | blob | blame | history
src/backend/executor/execMain.c diff | blob | blame | history
src/backend/executor/execPartition.c diff | blob | blame | history
src/backend/parser/analyze.c diff | blob | blame | history
src/bin/psql/tab-complete.c diff | blob | blame | history
src/include/commands/explain.h diff | blob | blame | history
src/include/executor/executor.h diff | blob | blame | history
src/test/regress/expected/explain.out diff | blob | blame | history
src/test/regress/sql/explain.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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