pgboy(at)guthrie(dot)charm(dot)net writes:> so, i am wondering if analyze also does a table scan,
It does not --- it does a statistical sampling, and it's quite possiblethat the estimate will be badly off.
regards, tom lane