tdb2: tdb_summary() implementation for tdb2.