Re: EXPLAIN ANALYZE printing logical and hardware I/O per-node - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: EXPLAIN ANALYZE printing logical and hardware I/O per-node
Date
Msg-id 87odcsqpcw.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: EXPLAIN ANALYZE printing logical and hardware I/O per-node  ("Gokulakannan Somasundaram" <gokul007@gmail.com>)
Responses Re: EXPLAIN ANALYZE printing logical and hardware I/O per-node
List pgsql-hackers
"Gokulakannan Somasundaram" <gokul007@gmail.com> writes:

> Hi,
>     I already made a discussion about it. We can view the Logical I/Os. If
> we enable the log_statement_stats in the conf file and apply the following
> patch, it is possible. But putting it in Explain analyze makes more sense to
> me.

I was going to say that I'm really only interested in physical I/O. Logical
I/O which is satisfied by the kernel cache is only marginally interesting and
buffer fetches from Postgres's shared buffer is entirely uninteresting from
the point of view of trying to figure out what is slowing down a query.

However I suppose that's not true. There are other reasons why buffer fetches
could be interesting. In particular I imagine when users post explain analyzes
it would give us a good idea of whether their tables or bloated or their
tuples are extremely wide (in cases where the planner gets it wrong).

But I do think that showing logical I/Os without even an heuristic based
measurement of actual physical i/o is pretty useless. It will make people
think they want to grow their shared buffers to cover all of memory.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's PostGIS support!


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: VLDB Features
Next
From: Gregory Stark
Date:
Subject: Re: Negative LIMIT and OFFSET?