truncate table supermag.smpostoutlog;
("Some supermag operations should be performed..."); ("delete from supermag.smpostinlog where recid<(select max(recid)-5000 from supermag.smpostinlog)"); ("delete from supermag.smpostoutlog where recid<(select max(recid)-5000 from supermag.smpostoutlog)");