When deleting email, I noticed a lot of commands go in pairs of
Debug:[sql] dbpgsql.c,db_query(+279): [SELECT message_idnr FROM dbmail_messages WHERE physmessage_id = 123314] Debug:[sql] dbpgsql.c,db_query(+279): [DELETE FROM dbmail_physmessage WHERE id = 123314] Debug:[sql] dbpgsql.c,db_query(+279): [DELETE FROM dbmail_messageblks WHERE physmessage_id = 123314]
Could this be done better with the use of referential integrity constraints to ensure that the data isn't lost or "disconnected" ?
