Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter database owner #61

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

XanderVertegaal
Copy link
Contributor

Somewhere around PostgreSQL 15, the permission system was changed, so the commands in create_db.sql and access_db.sql are not sufficient anymore for the DB user to create new tables.

Everything seems to work fine if I transfer ownership of the database to the recently created user.

ALTER DATABASE db_name OWNER TO db_user;

As an added benefit, I don't even have to run access_db.sql anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant