Returns the string str with trailing space characters removed.
SELECT RTRIM('barbar '); 'barbar'
This function is multibyte safe, and returns NULL if str is NULL.