Re: View based upon function won't use index on joins

From: Віталій Тимчишин <tivv00(at)gmail(dot)com>
To: Jonathan Foy <thefoy(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: View based upon function won't use index on joins
Date: 2009-11-20 16:34:09
Message-ID: 331e40660911200834g375a9673w20e6afcd3114c90e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

20 листопада 2009 р. 17:01 Jonathan Foy <thefoy(at)gmail(dot)com> написав:

> This seems to result in the same problem; should I attempt to pull for a
> specific id_nbr/id_qfr, postgres uses the index without a problem. If I try
> to join the two tables/views however, it insists on doing a sequential scan
> (actually two in this case) and will not use the index. Any other
> ideas/explanations?
>

Have you tried to do same (join) when not using the viewes or converting
columns into records? May be the problem is not in conversion, but in
something simplier, like statistics or index bloat?

Best regards, Vitalii Tymchyshyn

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Hrishikesh Mehendale 2009-11-20 16:42:11 Re: Partitions and max_locks_per_transaction
Previous Message Kevin Grittner 2009-11-20 15:24:17 Re: Postgres query completion status?