That's a good point but let's avoid excessive redundancy in the structures. Adding a few fields to RelStatsInfo should be enough.
Regards, Jeff Davis
Incorporating most of the feedback (I kept a few of the appendNamedArgument() calls) presented over the weekend.
* removeVersionNumStr is gone * relpages/reltuples/relallvisible are now char[32] buffers in RelStatsInfo and nowhere else (existing relpages conversion remains, however) * attribute stats export query is now prepared, and queries pg_stats with no joins * version parameter moved to end of both queries for consistency.