Get Biggest UserName in postgres:-
select max(char_length(user_name)),user_name from users group by user_name order by max(char_length(user_name)) desc;
select max(char_length(user_name)),user_name from users group by user_name order by max(char_length(user_name)) desc;