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

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

2009/11/20 Jonathan Foy <thefoy(at)gmail(dot)com>:
> Shy of just throwing a trigger in the
> table to actually populate a second table with the same data solely for
> reporting purposes,

That's what I would do in your situation, FWIW. Query optimization is
a hard problem even under the best of circumstances; getting the
planner to DTRT with a crazy schema is - well, really hard.

...Robert

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Haas 2009-11-23 18:11:32 Re: Query times change by orders of magnitude as DB ages
Previous Message Jonathan Blitz 2009-11-23 14:10:57 Re: Why is the query not using the index for sorting?