Re: Optimizing a huge_table/tiny_table join - Mailing list pgsql-performance

From PFC
Subject Re: Optimizing a huge_table/tiny_table join
Date
Msg-id op.tadyf1jicigqcu@apollo13
Whole thread Raw
In response to Optimizing a huge_table/tiny_table join  (<kynn@panix.com>)
List pgsql-performance
> SELECT * FROM huge_table h, tiny_table t WHERE UPPER( h.id ) =
> UPPER( t.id )

    What about :

SELECT * FROM huge_table h WHERE UPPER(id) IN (SELECT upper(id) FROM
tiny_table t)

    Or, try opening a cursor on your original query and using FETCH. It might
result in a different plan.
    Or lower random_page_cost.

pgsql-performance by date:

Previous
From: PFC
Date:
Subject: Re: INSERT OU UPDATE WITHOUT SELECT?
Next
From: Alvaro Herrera
Date:
Subject: Re: INSERT OU UPDATE WITHOUT SELECT?