create or replace function postgres json code example Example: replace postgresql REPLACE(source, old_text, new_text );