It would be great if this message would include some identifying information about the locked record and the connection id of the pprocess that holds the lock.

e.g. table name and rowid  or primary key info

instead of "Lock wait timeout of 1800 seconds expired (8812)"

show "Lock wait timeout of 1800 seconds expired on customer custnum 1 , locked by user 45 (8812)"

This would greatly help to solve locking issues in background processes. By the time the error is detected in the logfile the process has gone and it no longer possible to s