From: | "Aftab Alam" <aalam(at)tatashare(dot)com> |
---|---|
To: | "'Jeff Frost'" <jeff(at)frostconsultingllc(dot)com>, "'Daniel Caune'" <daniel(dot)caune(at)ubisoft(dot)com> |
Cc: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Power cut and performance problem |
Date: | 2006-03-22 03:38:47 |
Message-ID: | 003601c64d62$20db1400$ec1010ac@aftabn463 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
unsubscribe
Regards,
-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org
[mailto:pgsql-sql-owner(at)postgresql(dot)org]On Behalf Of Jeff Frost
Sent: Tuesday, March 21, 2006 9:19 PM
To: Daniel Caune
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Power cut and performance problem
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(at)frostconsultingllc(dot)com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | Patrick JACQUOT | 2006-03-22 09:01:23 | Re: Referential integrity broken (8.0.3), sub-select help |
Previous Message | Aftab Alam | 2006-03-22 03:38:08 | Re: Power cut and performance problem |