pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: aurora <aurora00@gmail.com>
Cc: Mark Lewis <mark.lewis@mir3.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: browsing table with 2 million records
Date: Wed, 26 Oct 2005 17:31:57 -0400
Message-ID: <11775.1130362317@sss.pgh.pa.us> (raw)
In-Reply-To: <cbd177510510261422h17f277d3w92c834164cf75a4e@mail.gmail.com>
References: <cbd177510510261341l4ed7a214lda9d67af12f2ec21@mail.gmail.com>
	<1130360385.1156.12.camel@archimedes>
	<cbd177510510261422h17f277d3w92c834164cf75a4e@mail.gmail.com>

aurora <aurora00@gmail.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



view thread (12+ messages)  latest in thread

Message-ID: <11775.1130362317@sss.pgh.pa.us>
Permalink:  ../11775.1130362317@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11775.1130362317@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, aurora00@gmail.com, mark.lewis@mir3.com
  Subject: Re: browsing table with 2 million records
  In-Reply-To: <11775.1130362317@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox