change schema name psql code example Example: postgres change the name of schema ALTER SCHEMA old_name RENAME TO new_name;