[GENERAL] Why can't the database owner create schemas and how can I enable that?

Поиск
Список
Период
Сортировка
От Tim Uckun
Тема [GENERAL] Why can't the database owner create schemas and how can I enable that?
Дата
Msg-id CAGuHJrOPm_VGXtVZ=+6ZPXDubCnoxJuJ0bUpfztFzjMzFxv+5g@mail.gmail.com
обсуждение исходный текст
Ответы Re: [GENERAL] Why can't the database owner create schemas and how canI enable that?  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
I am setting up a database for an app. So I create a user without superuser but with login priveleges

I then create a database and set it's owner to that user like this...

dropdb --if-exists api_development
dropuser --if-exists api_user

createuser api_user -P -d
createdb api_development -O api_user

The app can now connect to the database but it can't create any tables, schemas or anything else unless I give it superuser privileges. 

Is there any way I can make this user a superuser for this database without making it a superuser on other databases?

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Is float8 a reference type?
Следующее
От: Vladimir Mihailenco
Дата:
Сообщение: [GENERAL] shared_buffers smaller than max_wal_size