I try to only query lowercase results but LIKE is not case insensitive.
Here is an example:
SELECT
    CITY
FROM
    TARGETS
WHERE
    CITY RLIKE '^b.*n$'
the result is
BOSTON
boston
I want to only keep the 'boston', but I don't know how to do it. I checked this old answer:
But, the statement CAST(CITY AS BINARY) RLIKE '^b.*n$' doesn't work in PostgreSQL.
 
    