Why are sweep and mend exclusive operations?


Mend is used to prepare a broken database for backup. As it is broken, there is a high chance that sweep would fail - it's enough gfix needs to deal with valid records, why should it bother with outdated ones. In any case, if you have a corrupted database and are using mend to fix it, it doesn't make much sense to clear up the broken database file from old record versions. If you really want it, you can try to run sweep separately.

Please note that mend is not normally required - only when you have a corrupt database. In such cases, you need to mend, backup and if all goes well, restore that backup. The newly restored database would not have any garbage anyway, so there's no need for sweep at all.


Do you find this FAQ incorrect or incomplete? Please e-mail us what needs to be changed. To ensure quality, each change is checked by our editors (and often tested on live Firebird databases), before it enters the main FAQ database. If you desire so, the changes will be credited to your name. To learn more, visit our add content page.



All contents are copyright © 2007-2024 FirebirdFAQ.org unless otherwise stated in the text.


Links   Firebird   News   FlameRobin   Powered by FB: Home Inventory   Euchre  
Add content   About  

Categories
 Newbies
 SQL
 Installation and setup
 Backup and restore
 Performance
 Security
 Connectivity and API
 HOWTOs
 Errors and error codes
 Miscellaneous