[code language=”shell”]
$ psql postgres
psql (9.6.5)
Type "help" for help.
postgres=# ALTER DATABASE mydb_test RENAME TO mydb_test_backup;
[/code]