Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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.


In response to

pgsql-performance by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group