Re: Query optimization / automatic re-ordering of tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Verena Ruff" <lists(at)triosolutions(dot)at>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Query optimization / automatic re-ordering of tables
Date: 2006-07-19 14:49:24
Message-ID: 25988.1153320564@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Verena Ruff" <lists(at)triosolutions(dot)at> writes:
> The WHERE clause is created dynamically and may contain fields of each
> table which is part of the join, so I can't just change the order of the
> tables in my code to get the best result. Is there a way to make those
> optimizations (re-ordering of tables) automatically?

CVS HEAD (PG 8.2 to be) is reasonably bright about re-ordering left
joins, but no current release tries to do it at all...

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2006-07-19 14:53:58 Re: case-insensitive Index
Previous Message Verena Ruff 2006-07-19 13:07:23 case-insensitive Index