We are using Amazon-Redshift (PostgreSQL compliant syntax), we have the following string in a table
"TOTO;"
"TOTO;;"
"TOTO;;;"
"TOTO;;;;"
I would like to 'rtrim' double semicolons. So I would like to have
"TOTO;"
"TOTO"
"TOTO;"
"TOTO"
How to do it?