Notes to solve delivery instructions length problem: 1. create table deliverdetails_back (objid int8 not null primary key, date varchar(15), time varchar(15), instructions varchar()) 2. insert into deliverdetails_back (objid, date, time, instructions) select objid, date, time, instructions from deliverdetails 3. drop table deliverdetails 4. alter table deliverdetails_back rename to deliverdetails