Try to reduce CPU consumption
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 17 Oct 2016 15:04:03 +0000 (18:04 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 17 Oct 2016 15:04:03 +0000 (18:04 +0300)
commitf0071352047aa4cc7e3822101f9d30a67e12c8e3
tree13dc05aaf3c91e5f8c8e34bd74cda92001cae1c7
parenta611ddcfaa1436d4e8cbf958a82d70bbbcd1b7bb
Try to reduce CPU consumption

1 use only one hash lookup to get Relation
2 move pgstat_fetch_stat_tabentry() to the last check, because
  this call is rather expensive
online_analyze.c