Ow Mun Heng <Ow.Mun.Heng@xxxxxxx> writes: > Queries involves 11 Joins (of 5 Main tables, of which 3 are Large, 2 are > fact tables) It would be a good idea to increase join_collapse_limit to more than 11. This will increase the planning time, but the investment will likely be worthwhile for such a large query. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match