Matthew Sackman wrote:

I need to get to the stage where I can run queries such as:
select street, locality_1, locality_2, city from address where (city = 'Nottingham' or locality_2 = 'Nottingham'
       or locality_1 = 'Nottingham')
and upper(substring(street from 1 for 1)) = 'A' group by street, locality_1, locality_2, city
order by street
limit 20 offset 0

and have the results very quickly.

This sort of query will be handled nicely in 8.1 - it has bitmap and/or processing to make use of multiple indexes. Note that 8.1 is in beta now.



---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply via email to