Rename PostgreSQL Database
From time to time, you may find yourself needing to rename a database in Postgres. Luckily, you can do that with the ALTER DATABASE command. In psql, run:
ALTER DATABASE hashrocket_test_db_instance RENAME TO hashrocket_test;
Read more - PostgreSQL Tutorials - ALTER DATABASE
Tweet