PostgreSQL Function Reference

RTRIM
Removes trailing spaces from a string.
PostgreSQL 17.5
RTRIM(str)
str
The string
Examples
PostgreSQL 17.5
SELECT RTRIM('  Hello  ')