0

Why does the Owner show "postgres" after creating a new PostgreSQL database? How can I create a new database with my DB user as the owner? My DB user has the privilege to create a database.

1

1 Answer 1

2

As documented in the manual you can specify the owner when creating the database

create database my_new_dabase
    OWNER = sunday_ezeilo;

This assumes that you already have a role/user named sunday_ezeilo

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.