How to rename a database in PostgreSQL

ALTER DATABASE "<old name>" RENAME TO "<new name>"

Subscribe to My Newsletter

The latest programming-related news, articles and resources - sent to your inbox monthly. Unsubscribe anytime.