The current API will need to be fixed to always return 4 byte values.
If we want to expose the full 64-bit range then we indeed need to add
new info items. If we do that, we also need to consider extensibility,
because I think the current implementation has problems if you have a
lot of tables with statistics, that is, at 6 bytes per table, it can
currently can only report statistics on 10922 tables. If we go to 10
bytes per table (2 byte table, 8 byte value), this goes down to 6553
tables, or if we go to 12 bytes (including 2 byte table, 2 byte length,
4 or 8 byte value), it goes down to 8191 - 5461. In practice, a
connection is probably unlikely to have so many active statistics, but
maybe this is something we should take into account.
Mark
--
Mark Rotteveel