Subject Re: [firebird-support] Knowing the previous rows
Author Ann Harrison

The idea is to know how many garbage a table has. Or several tables. Or the whole database.

That you can find out with gstat.  It won't tell you how bad each record is, but it will tell you the total number of back version, average, min, and max chain lenght.

Then you can set up triggers (if you want) on troublesome tables.

Good luck,