The history file is only 14 MB (4219 lines long) but the PostGIS geometry columns (auto-generated from a .SHP file) result in individual INSERT statements that are as much as 500000 characters long.
This file is used by the query tool since 1.12. Do you know which size