From: Scott Marlowe <scott.marlowe@gmail.com>
To: AI Rumman <rummandba@gmail.com>
Cc: Szymon Guz <mabewlun@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: query hangs
Date: Mon, 14 Jun 2010 14:16:39 -0600
Message-ID: <AANLkTikyrWM2Rzza8FOopc0-WR10YiiVJB3s7_pfCjdA@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikeRczerWpIbITeptifRR9dKUDImK2PYaQ7XzPu@mail.gmail.com>
References: <AANLkTilkFy49pAQeUVy-5pJpz-OuHOl2HgC69ptZO8dS@mail.gmail.com>
<AANLkTinlGaUxzYwW5YFkU8DUXRZUur8anAvmnymH9Ew8@mail.gmail.com>
<AANLkTikeRczerWpIbITeptifRR9dKUDImK2PYaQ7XzPu@mail.gmail.com>
On Thu, Jun 10, 2010 at 5:36 AM, AI Rumman <rummandba@gmail.com> wrote:
> I found only AccessShareLock in pg_locks during the query.
> And the query does not return data though I have been waiting for 10 mins.
>
> Do you have any idea ?
I have queries that run for hours. As long as it's using CPU / IO
(use top in unix, whatever in windows to see) it's not hung, it's just
taking longer than you expected. Those are not the same thing at all.
Seeing as how you're joining three tables with millions of rows with
no where clause, it's gonna take some to complete. Go grab a
sandwich, etc, come back when it's done.
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-performance@postgresql.org
Cc: scott.marlowe@gmail.com, rummandba@gmail.com, mabewlun@gmail.com
Subject: Re: query hangs
In-Reply-To: <AANLkTikyrWM2Rzza8FOopc0-WR10YiiVJB3s7_pfCjdA@mail.gmail.com>
References: <AANLkTilkFy49pAQeUVy-5pJpz-OuHOl2HgC69ptZO8dS@mail.gmail.com> <AANLkTinlGaUxzYwW5YFkU8DUXRZUur8anAvmnymH9Ew8@mail.gmail.com> <AANLkTikeRczerWpIbITeptifRR9dKUDImK2PYaQ7XzPu@mail.gmail.com> <AANLkTikyrWM2Rzza8FOopc0-WR10YiiVJB3s7_pfCjdA@mail.gmail.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