show Heap Fetches in EXPLAIN for index-only scans

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: show Heap Fetches in EXPLAIN for index-only scans
Date: 2012-01-13 15:21:22
Message-ID: CA+TgmoYwVhYkGJfNWz7DF3P5VPw-8qv97o8dwdhfpxf6O1tYfw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I think that people who are using index-only scans are going to want
some way to find out the degree to which the scans are in fact
index-only.

So here's a 5-line patch that adds the number of heap fetches to the
EXPLAIN ANALYZE output. This might not be all the instrumentation
we'll ever want here, but I think we at least want this much.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
explain-heap-fetches.patch application/octet-stream 1.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2012-01-13 15:22:20 Re: Disabled features on Hot Standby
Previous Message Simon Riggs 2012-01-13 15:17:14 Re: Disabled features on Hot Standby