| From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
|---|---|
| To: | Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> |
| Cc: | Misa Simic <misa(dot)simic(at)gmail(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org> |
| Subject: | Re: Paged Query |
| Date: | 2012-07-10 00:34:14 |
| Message-ID: | CAMkU=1zgPkk0vv_7DVkKuPv7woKp9k_8o9o4oDUBHH+4Vg0HmA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
On Mon, Jul 9, 2012 at 4:50 PM, Craig Ringer <ringerc(at)ringerc(dot)id(dot)au> wrote:
>
>
> When/if you do need a count of a single table without any filters, a common
> trick is to use table statistics to return an approximation. If your
> autovaccum is running regularly it's usually a very good approximation, too.
>
> Sounds like this hack may become unnecessary in 9.2 though.
Index only scans in 9.2 are nice, but they don't fundamentally change
this type of thing.
Cheers,
Jeff
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Craig Ringer | 2012-07-10 01:25:33 | Re: how could select id=xx so slow? |
| Previous Message | Craig Ringer | 2012-07-09 23:50:29 | Re: Paged Query |