I noticed that in the conversion of the dbmail_messageblks.messageblk from text to bytea that the not null constraint was lost, so we need to add:
ALTER TABLE dbmail_messageblks ALTER messageblk SET not null; to the first begin commit block just before the commit command. Matt
