Re: *sigh* - Mailing list pgsql-hackers

From Neil Conway
Subject Re: *sigh*
Date
Msg-id m2ekuflm2t.fsf@mailbox.samurai.com
Whole thread Raw
In response to Re: *sigh*  ("Simon Riggs" <simon@2ndquadrant.com>)
List pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> Select count(*) could be evaluated against any available index
> sub-tables, since all that is required is to count the rows. That would
> be significantly faster than a full file scan and accurate too.

PostgreSQL stores MVCC information in heap tuples only, so index-only
plans such as you're suggesting can't be used (i.e. we need to check
the heap tuple to see if a particular index entry is visible to the
current transaction).

-Neil



pgsql-hackers by date:

Previous
From: Neil Conway
Date:
Subject: Re: Need a good .
Next
From: "Andrew Dunstan"
Date:
Subject: Re: PL/Java issues