<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Found it (maybe).</div><div><br></div><div>The generated postgis scripts did include a vacuum analyze for each state's separate files, but the explain still showed it wasn't using an index. </div><div><br></div><div>I ran an analyze against the PARENT tables from which all states inherit, and performance is 1.5 seconds on average now. </div><div><br></div><div>Could it be that the query optimizer looks for stats for the parent table itself rather than looking at the stats of the inheriting children?</div><div><br></div><div>Thanks</div><div><br></div><div>Wayne</div><div><br>On Jun 21, 2015, at 8:32 AM, Wayne Seguin <<a href="mailto:wseguin@gmail.com">wseguin@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><p><span style="background-color: rgba(255, 255, 255, 0);">Brand new installation of PostgreSQL 9.4.4 with latest PostGIS as an Extension and 2014 tiger data. 100% loaded and indexed.</span></p><p><span style="background-color: rgba(255, 255, 255, 0);">Geocoding any address is taking 1-2 minutes per. Something is wrong, but no way to tell what. Checked and all data and indexes are present. System is a 4-core 16Gb ram, SSD-based machine.</span></p><p><span style="background-color: rgba(255, 255, 255, 0);">SELECT * FROM geocode(normalize_address('4150 International Plaza Fort Worth TX 76109')) As g;</span></p><p>Might have narrowed it down to the big select at the end of the geocode() function, but since I do have all indexes, I'm at a loss to figure out what's wrong. </p><div></div></div></blockquote></body></html>