I attached fix which modify foreign_data test. It fix problem with Czechcollation when numbers are ordered after letters. I retyped affectedcolumn to name datatype which uses bitwise cmp.
Zdenek