Alvaro Herrera <alvhe...@alvh.no-ip.org> writes: > It seems pretty clear to me that we should somehow transfer stats from > the old server to the new one. Shouldn't it just be a matter of > serializing the MCV/histogram/ndistinct values, then have capabilities > to load on the new server?
The reason pg_upgrade hasn't done that in the past is not wishing to assume that the new version does stats identically to the old version. Since we do in fact add stats or change stuff around from time to time, that's not a negligible consideration. regards, tom lane