Re: Paged Query - Mailing list pgsql-performance

From Jeff Janes
Subject Re: Paged Query
Date
Msg-id CAMkU=1zgPkk0vv_7DVkKuPv7woKp9k_8o9o4oDUBHH+4Vg0HmA@mail.gmail.com
Whole thread Raw
In response to Re: Paged Query  (Craig Ringer <ringerc@ringerc.id.au>)
List pgsql-performance
On Mon, Jul 9, 2012 at 4:50 PM, Craig Ringer <ringerc@ringerc.id.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

pgsql-performance by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Paged Query
Next
From: Craig Ringer
Date:
Subject: Re: how could select id=xx so slow?