From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kishore B <kishorebh@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Need help in setting optimal configuration for a huge database.
Date: Sat, 22 Oct 2005 18:15:43 -0400
Message-ID: <3994.1130019343@sss.pgh.pa.us> (raw)
In-Reply-To: <42567e060510221415r2516523l4c3f9b42dee91a09@mail.gmail.com>
References: <42567e060510221415r2516523l4c3f9b42dee91a09@mail.gmail.com>
Kishore B <kishorebh@gmail.com> writes:
> Even a basic query like select count(*) from bigger_table is
> taking about 4 minutes to return.
You do realize that "select count(*)" requires a full table scan in
Postgres? It's never going to be fast.
If that's not where your performance problem really is, you need to
show us some of the actual problem queries. If it is, you should
rethink why your application needs an exact row count.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, kishorebh@gmail.com, pgsql-performance@postgresql.org
Subject: Re: Need help in setting optimal configuration for a huge database.
In-Reply-To: <3994.1130019343@sss.pgh.pa.us>
References: <42567e060510221415r2516523l4c3f9b42dee91a09@mail.gmail.com> <3994.1130019343@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