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

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 (view raw or flat)
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

pgsql-novice by date

Next:From: Tom LaneDate: 2006-07-19 14:53:58
Subject: Re: case-insensitive Index
Previous:From: Verena RuffDate: 2006-07-19 13:07:23
Subject: case-insensitive Index

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