From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: maxim.boguk@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6513: explain (analyze, buffers) and toasted fields
Date: Mon, 12 Mar 2012 11:23:44 -0400
Message-ID: <27251.1331565824@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoaGQOrC+y=T4_12Pt3G1CyuHJLuo1SXmqDgFoxSv0XJ0A@mail.gmail.com>
References: <E1S4PRm-0005pG-H0@wrigleys.postgresql.org>
<CA+TgmoaGQOrC+y=T4_12Pt3G1CyuHJLuo1SXmqDgFoxSv0XJ0A@mail.gmail.com>
Robert Haas <robertmhaas@gmail.com> writes:
> ... I think that if there's an actual bug here, it's that
> EXPLAIN ANALYZE is skipping the formation of the actual output tuples,
> and therefore it's doing less work than an actual execution of the
> real query would. I am not sure whether it would be a good idea to
> change that or not.
EXPLAIN ANALYZE *necessarily* does less work than the real query,
because it doesn't transmit the results to the client (which is going
to be a dominant cost in a lot of situations). I'm not sure whether
running the I/O functions would provide a useful improvement in
verisimilitude or not; but one should never imagine that EXPLAIN is an
exact simulation of normal query execution. It's meant for debugging
planner choices, anyway, and the detoast&I/O costs are going to be the
same whichever plan you choose.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, maxim.boguk@gmail.com
Subject: Re: BUG #6513: explain (analyze, buffers) and toasted fields
In-Reply-To: <27251.1331565824@sss.pgh.pa.us>
References: <E1S4PRm-0005pG-H0@wrigleys.postgresql.org> <CA+TgmoaGQOrC+y=T4_12Pt3G1CyuHJLuo1SXmqDgFoxSv0XJ0A@mail.gmail.com> <27251.1331565824@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox