Re: browsing table with 2 million records

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: aurora <aurora00(at)gmail(dot)com>
Cc: Mark Lewis <mark(dot)lewis(at)mir3(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: browsing table with 2 million records
Date: 2005-10-26 21:31:57
Message-ID: 11775.1130362317@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

aurora <aurora00(at)gmail(dot)com> writes:
> It would still be helpful if select count(*) can perform well.

If you can settle for an approximate count, pg_class.reltuples might
help you.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Steinar H. Gunderson 2005-10-26 21:37:30 Re: Materializing a sequential scan
Previous Message Alex Turner 2005-10-26 21:28:36 Re: browsing table with 2 million records