Re: oddly slow query

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Jessi Berkelhammer" <jberkelhammer(at)desc(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: oddly slow query
Date: 2008-01-11 20:37:44
Message-ID: 162867790801111237p70ac9ed7vef85e707cf6714bf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/01/2008, Jessi Berkelhammer <jberkelhammer(at)desc(dot)org> wrote:
> Hello.
>
> I'm trying to figure out why a query I'm doing is incredibly slow (~10
> minutes.) The incredibly slow query is something like:
>
> SELECT count(*) from registration LEFT JOIN person USING (person_id)
> WHERE x_program(registration.x_type_code) = 'blah';

Hello

what do you do in x_program function? Are you sure so it is fast?

Regards
Pavel Stehule

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jessi Berkelhammer 2008-01-11 21:29:49 Re: oddly slow query
Previous Message Tom Lane 2008-01-11 20:27:30 Re: oddly slow query