Re: the big picture for index-only scans
От
Simon Riggs
Тема
Re: the big picture for index-only scans
Дата
Msg-id
BANLkTi=JQbaxrneVB0SoEPvByHU1PscZTw@mail.gmail.com
Ответ на
Re: the big picture for index-only scans (Bruce Momjian)
Список
Дерево обсуждения
the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Simon Riggs <simon@2ndQuadrant.com>
Re: the big picture for index-only scans Nicolas Barbier <nicolas.barbier@gmail.com>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Simon Riggs <simon@2ndQuadrant.com>
Re: the big picture for index-only scans "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: the big picture for index-only scans Tom Lane <tgl@sss.pgh.pa.us>
Re: the big picture for index-only scans "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: the big picture for index-only scans Simon Riggs <simon@2ndQuadrant.com>
Re: the big picture for index-only scans "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: the big picture for index-only scans Simon Riggs <simon@2ndQuadrant.com>
Re: the big picture for index-only scans "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: the big picture for index-only scans Greg Stark <gsstark@mit.edu>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Greg Stark <gsstark@mit.edu>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Tom Lane <tgl@sss.pgh.pa.us>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Simon Riggs <simon@2ndQuadrant.com>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: the big picture for index-only scans Jesper Krogh <jesper@krogh.cc>
Re: the big picture for index-only scans Simon Riggs <simon@2ndQuadrant.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Florian Pflug <fgp@phlo.org>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Florian Pflug <fgp@phlo.org>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Greg Stark <gsstark@mit.edu>
Re: the big picture for index-only scans Simon Riggs <simon@2ndQuadrant.com>
Re: the big picture for index-only scans Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: the big picture for index-only scans Tom Lane <tgl@sss.pgh.pa.us>
Re: the big picture for index-only scans Bruce Momjian <bruce@momjian.us>
Re: the big picture for index-only scans "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: the big picture for index-only scans Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Gokulakannan Somasundaram <gokul007@gmail.com>
Re: the big picture for index-only scans Merlin Moncure <mmoncure@gmail.com>
Re: the big picture for index-only scans Robert Haas <robertmhaas@gmail.com>
Re: the big picture for index-only scans Merlin Moncure <mmoncure@gmail.com>
On Wed, May 11, 2011 at 2:34 AM, Bruce Momjian wrote: > Robert Haas wrote: >> So, what do we need in order to find our way to index-only scans? >> >> 1. The visibility map needs to be crash-safe. The basic idea of >> index-only scans is that, instead of checking the heap to find out >> whether each tuple is visible, we first check the visibility map. If >> the visibility map bit is set, then we know all tuples on the page are >> visible to all transactions, and therefore the tuple of interest is >> visible to our transaction. Assuming that a significant number of >> visibility map bits are set, this should enable us to avoid a fair >> amount of I/O, especially on large tables, because the visibility map >> is roughly 8000 times smaller than the heap, and therefore far more >> practical to keep in cache. However, before we can rely on the > > FYI, because the visibility map is only one _bit_ per page, it is 8000 * > 8 or 64k times smaller than the heap, e.g. one 8k page covers 64MB of > heap pages. This is important because we rely on this compactness in > hope that the WAL logging of this information will not be burdensome. We would need to issue one WAL record per bit, not per page. I'm concerned about the path length added by VM visits and the potential contention that concentration of information will bring. Those aren't things to be dismissed without calculation and analysis. There might not be an issue there, but its worth checking. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления