PG::InsufficientPrivilege: ERROR: permission denied to create databasePostgreSQL PG::InsufficientPrivilege: ERROR: permission denied to create databaseの解決 PG::InsufficientPrivilege: ERROR: permission denied to create database これを解決するためには、データベースユーザにデータベースの作成権限を付与します。次のように、PostgreSQLのターミナルでALTER ROLEによりCREATEDBオプションを付与します。 $ sudo -u postgres psql と入力し、続けて postgres=# ALTER ROLE <ユーザー名> WITH CREATEDB;