Re: slow plan on join when adding where clause

From: Mladen Gogala <mgogala(at)vmsinfo(dot)com>
To: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: slow plan on join when adding where clause
Date: 2010-04-01 18:19:09
Message-ID: 4BB4E39D.8090808@vmsinfo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Jasen, he does have the index, that precisely is a problem. According to
his statement, full table scan is faster than an index search.

Jasen Betts wrote:
> On 2010-03-29, L. Loewe <lloewe(at)hotmail(dot)com> wrote:
>
>> Hi all
>>
>
>
>> SELECT * FROM events, main WHERE main.ti > events.start and
>> main.ti < events.stop and sensor_id=1;
>>
>
> create index main_ti_sid on main(sensor_id,ti);
>
>
>

--

Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
http://www.vmsinfo.com
The Leader in Integrated Media Intelligence Solutions

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message L. Loewe 2010-04-02 04:11:22 Re: slow plan on join when adding where clause
Previous Message Jignesh Shah 2010-04-01 07:17:21 Re: Get the list of permissions on schema for current user