Re: r trim of characters other than space - Mailing list pgsql-general

From Tom Lane
Subject Re: r trim of characters other than space
Date
Msg-id 27685.1139469559@sss.pgh.pa.us
Whole thread Raw
In response to r trim of characters other than space  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
List pgsql-general
"surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in> writes:
> i want to make the following check,
> if it is having carets in the end, then those carets be removed.
> so if i get a string like abc def^^^^
> i should be able to get abc def

Per SQL spec:

regression=# select trim(trailing '^' from 'abc def^^^^');
  rtrim
---------
 abc def
(1 row)

            regards, tom lane

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: r trim of characters other than space
Next
From: Alexander Presber
Date:
Subject: referential integrity without trigger