LATERAL JOIN not using trigram index
问题 I want to do some basic geocoding of addresses using Postgres. I have an address table that has around 1 million raw address strings: => \d addresses Table "public.addresses" Column | Type | Modifiers ---------+------+----------- address | text | I also have a table of location data: => \d locations Table "public.locations" Column | Type | Modifiers ------------+------+----------- id | text | country | text | postalcode | text | latitude | text | longitude | text | Most of the address strings