pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Kishore B <kishorebh@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Why different execution times for different instances for the same query?
Date: Tue, 25 Oct 2005 15:44:23 -0500
Message-ID: <20051025204423.GP16682@pervasive.com> (raw)
In-Reply-To: <42567e060510251318n747e0cf8m311210c3e4434bf3@mail.gmail.com>
References: <42567e060510251318n747e0cf8m311210c3e4434bf3@mail.gmail.com>

It's impossible to say without more information. What's the query that's
slow? What's EXPLAIN ANALYZE of that query show? How often are you
vacuuming? How often are you analyzing? What postgresql.conf options
have you changed from the defaults? What hardware is this running on?

The memory usage you're seeing is most likely just the OS reporting
shared memory as if it was being used by each backend, even though it's
just one set of memory that's shared between all the processes.

On Wed, Oct 26, 2005 at 01:48:16AM +0530, Kishore B wrote:
> Hi All,
> 
>  I am Kishore doing freelance development of J2EE applications.
> 
>  We switched to use Postgresql recently because of the advantages it has
> over other commercial databases. All went well untill recently, untill we
> began working on an application that needs to maintain a huge database.
> 
>  I am describing the problem we are facing below. Can you please take a look
> at the case, and help me in resolvign the issue.
> 
>  We are executing a single query that returned very fast on the first
> instance. But when I executed the same query for multiple times, it is
> giving strange results. It is not coming back.
>  When I checked with the processes running in the system, I observed that
> multiple instances of postmaster are running and all of them are consuming
> very high amounts of memory. I could also observe that they are sharing the
> memory in a uniform distribution across them.
>  Can you please let me know if you have experienced the same and how do you
> resolved it?
>  Thank you,
> Kishore.

-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (2+ messages)

Message-ID: <20051025204423.GP16682@pervasive.com>
Permalink:  ../20051025204423.GP16682@pervasive.com/
Also on:    postgresql.org/message-id/20051025204423.GP16682@pervasive.com

 · 

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 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: jnasby@pervasive.com, kishorebh@gmail.com
  Subject: Re: Why different execution times for different instances for the same query?
  In-Reply-To: <20051025204423.GP16682@pervasive.com>
  References: <42567e060510251318n747e0cf8m311210c3e4434bf3@mail.gmail.com> <20051025204423.GP16682@pervasive.com>

* 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