Skip site navigation (1) Skip section navigation (2)

Re: Various performance questions

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Various performance questions
Date: 2003-10-27 12:52:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
In the last exciting episode, dror(at)zapatec(dot)com (Dror Matalon) wrote:
> I was answering an earlier response that suggested that maybe the actual
> counting took time so it would take quite a bit longer when there are
> more rows to count.

Well, if a "where clause" allows the system to use an index to search
for the subset of elements, that would reduce the number of pages that
have to be examined, thereby diminishing the amount of work.

Why don't you report what EXPLAIN ANALYZE returns as output for the
query with WHERE clause?  That would allow us to get more of an idea
of what is going on...
(format nil "~S(at)~S" "cbbrowne" "")
When  replying, it  is  often possible  to cleverly edit  the original
message in such a way  as to subtly alter  its meaning or tone to your
advantage while  appearing that you are  taking pains  to preserve the
author's intent.   As a   bonus,   it will   seem that your   superior
intellect is cutting through all the excess verbiage to the very heart
of the matter.  -- from the Symbolics Guidelines for Sending Mail

In response to


pgsql-performance by date

Next:From: Greg StarkDate: 2003-10-27 15:09:09
Subject: Re: Various performance questions
Previous:From: Manfred KoizarDate: 2003-10-27 10:08:49
Subject: Re: Performance Concern

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group