Simple translate function example
postgres=# SELECT translate('This is a mistake.', 'is', 'was'); translate -------------------- Thwa wa a mwatake. (1 row) postgres=#