Invent SERIALIZE option for EXPLAIN.
authorTom Lane <[email protected]>
Wed, 3 Apr 2024 21:41:54 +0000 (17:41 -0400)
committerTom Lane <[email protected]>
Wed, 3 Apr 2024 21:41:57 +0000 (17:41 -0400)
commit06286709ee0637ec7376329a5aa026b7682dcfe2
treef1c4f4b606b28227c401be2722b1d08c924586e9
parent97ce821e3e171ce99fa7c398889ac08432cd0264
Invent SERIALIZE option for EXPLAIN.

EXPLAIN (ANALYZE, SERIALIZE) allows collection of statistics about
the volume of data emitted by a query, as well as the time taken
to convert the data to the on-the-wire format.  Previously there
was no way to investigate this without actually sending the data
to the client, in which case network transmission costs might
swamp what you wanted to see.  In particular this feature allows
investigating the costs of de-TOASTing compressed or out-of-line
data during formatting.

Stepan Rutz and Matthias van de Meent,
reviewed by Tomas Vondra and myself

Discussion: https://postgr.es/m/ca0adb0e-fa4e-c37e-1cd7-91170b18cae1@gmx.de
doc/src/sgml/perform.sgml
doc/src/sgml/ref/explain.sgml
src/backend/access/common/printtup.c
src/backend/commands/explain.c
src/backend/tcop/dest.c
src/include/commands/explain.h
src/include/tcop/dest.h
src/test/regress/expected/explain.out
src/test/regress/sql/explain.sql
src/tools/pgindent/typedefs.list