OSDN Git Service

Actually there's a better way to do this, which is to count tuples
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Feb 2006 00:18:17 +0000 (00:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Feb 2006 00:18:17 +0000 (00:18 +0000)
commitd52a57fc300312c5a165e296a1b12a0c4fd668bd
treeaba110da3ab6cba8e1d709f078e893c9f34c8d9b
parentfd267c1ebc363ae6b1bf586794fa5cc9e8cca43c
Actually there's a better way to do this, which is to count tuples
during the vacuumcleanup scan that we're going to do anyway.  Should
save a few cycles (one calculation per page, not per tuple) as well
as not having to depend on assumptions about heap and index being
in step.
I think this could probably be made to work for GIST too, but that
code looks messy enough that I'm disinclined to try right now.
src/backend/access/nbtree/nbtree.c