-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: grant role before creating database
In some postgresql installations, the following fails: template1=> create user test; CREATE ROLE template1=> create database test owner test; ERROR: must be member of role "test" This is fixed by template1=> grant test to azureuser; GRANT ROLE template1=> create database test owner test; CREATE DATABASE Furthermore, granting privileges to the owner is superfluous according to the postgresql docs, so we drop it. The investigation of this issue also surfaces a bug in the error message for "manual database creation", and that the `--su-db-name` was not passed on from the commandline.
- Loading branch information
Leopold Talirz
committed
Dec 8, 2022
1 parent
f3e1968
commit d6f68ad
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters