Re: [SPAM] [NOVICE] Users: must all Pg users be system users?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [SPAM] [NOVICE] Users: must all Pg users be system users?
Дата
Msg-id CAKFQuwbv5YueyVTOGL+rSxqR27TXX49K5Z6BFcFAbHFwOPPUUQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [SPAM] [NOVICE] Users: must all Pg users be system users?  (Tom Browder <tom.browder@gmail.com>)
Список pgsql-novice
On Mon, Sep 18, 2017 at 2:27 PM, Tom Browder <tom.browder@gmail.com> wrote:
Using createuser I guess takes care of that.

​No, creation of roles (users and/or groups) and databases​ are completely independent - whether you use SQL directly or the shell wrappers.

The reason they seem related is that by convention, for the provided shell tools, if one does not specify a database name explicitly the connection routine will fill in the unknown with the name of the (if applicable, mapped) user.  But this is only convention/convenience and, for an application developer, not particularly useful since usually I'll have one application database and multiple authenticated users with varying roles within my application.

David J.

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

Предыдущее
От: Tom Browder
Дата:
Сообщение: Re: [SPAM] [NOVICE] Users: must all Pg users be system users?
Следующее
От: NAGA MANOJ BANDARU
Дата:
Сообщение: [NOVICE] Version of libxml2 and libxslt libraries bundled with PostgreSQL-9.6.2