Question about Sql SELECT and optimizer - Mailing list pgsql-sql

From Chaz.
Subject Question about Sql SELECT and optimizer
Date
Msg-id 44071B14.4060906@gmail.com
Whole thread Raw
Responses Re: Question about Sql SELECT and optimizer
List pgsql-sql
I am trying to understand something I have seen happen. I had a select
that looked like:

select f(A) from A, B, C where g(A)

Where f(A) is the select that only depends on table A;
g(A) is the where part that only depends on table A.

What I saw happen was the optimizer will waste a lot of time (seconds!)
bringing in table B and C. I was wondering why doesn't the optimizer
drop references to tables B and C since they aren't used any where?

Peace and thanks in advance
Chuck Wegrzyn


pgsql-sql by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Without OIDs
Next
From: Maciej Piekielniak
Date:
Subject: Re: dump with lo