Postgres Replace Function Example In Python