Phoenix 180

First revision for review.  There are some open points here.  Still no test case added to consume the stats.  Will do the performance test once the system is available with me.
See above caveat for aging out the PTable from the cache. Also, the manual call to ANALYZE will invalidate the table after the stats have been updated, so the next select would get the new stats.