pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Frost <jeff@frostconsultingllc.com>
To: Daniel Caune <daniel.caune@ubisoft.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Power cut and performance problem
Date: Tue, 21 Mar 2006 07:49:24 -0800 (PST)
Message-ID: <Pine.LNX.4.64.0603210747020.969@discord.dyndns.org> (raw)
In-Reply-To: <1E293D3FF63A3740B10AD5AAD88535D201D30868@UBIMAIL1.ubisoft.org>
References: <1E293D3FF63A3740B10AD5AAD88535D201D30868@UBIMAIL1.ubisoft.org>

On Tue, 21 Mar 2006, Daniel Caune wrote:

> For example, the execution of the following query is fast as it used to
> be (gslog_event_id is the primary key on gslog_event):
>
>  select max(gslog_event_id) from gslog_event;  (=> Time: 0.773 ms)
>
>
> while the following query is really slow (several minutes):
>
>  select min(gslog_event_id) from gslog_event; (index on the primary key
> is taken)
>
>
> I'm not a hardware expert at all, but I supposed that the whole
> performance would be degraded when a problem occurs with RAID disks.  Am
> I wrong?  Could it be something else?  Are there some tools that check
> the state of a PostgreSQL database?

You would be correct, a hardware problem should manifest itself on both those 
queries.  What is the explain analyze output of those two queries?  It's 
possible you have a corrupt index on gslog_event.  If that's the case, a 
reindex would likely remedy the problem.  Is postgres logging any errors?

-- 
Jeff Frost, Owner 	<jeff@frostconsultingllc.com>
Frost Consulting, LLC 	http://www.frostconsultingllc.com/
Phone: 650-780-7908	FAX: 650-649-1954



view thread (9+ messages)  latest in thread

Message-ID: <Pine.LNX.4.64.0603210747020.969@discord.dyndns.org>
Permalink:  ../Pine.LNX.4.64.0603210747020.969@discord.dyndns.org/
Also on:    postgresql.org/message-id/Pine.LNX.4.64.0603210747020.969@discord.dyndns.org

 · 

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-sql@postgresql.org
  Cc: jeff@frostconsultingllc.com, daniel.caune@ubisoft.com
  Subject: Re: Power cut and performance problem
  In-Reply-To: <Pine.LNX.4.64.0603210747020.969@discord.dyndns.org>
  References: <1E293D3FF63A3740B10AD5AAD88535D201D30868@UBIMAIL1.ubisoft.org> <Pine.LNX.4.64.0603210747020.969@discord.dyndns.org>

* 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