Re: Ways to edit users and permissions for database

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Ways to edit users and permissions for database
Дата
Msg-id 4F604C2A.9050704@hogranch.com
обсуждение исходный текст
Ответ на Ways to edit users and permissions for database  (Alexander Reichstadt <lxr@mac.com>)
Ответы Re: Ways to edit users and permissions for database  (Alexander Reichstadt <lxr@mac.com>)
Список pgsql-general
On 03/14/12 12:38 AM, Alexander Reichstadt wrote:
> this was probably asked dozens of times before, but I couldn't find where, and neither in the docs and what I found
onthe web didn't make sense. I found how to create users and check their permissions using terminal. But I need to
alterand create users and permissions through libpq or SQL directly. I also found there to be a reference on the
INFORMATION_SCHEMA,but still couldn't make sense out of these tables in the given context. This is to make a user
administrationinside the client frontend. What approach would be recommended for this purpose? 

SQL commands like...

CREATE USER freddy WITH PASSWORD 'something';
CREATe DATABASE freddb OWNER freddy;

issued same as any other SQL queries, via libpq etc.

note, the INFORMATION_SCHEMA is read only as its all implemented as
VIEW's...




--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


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

Предыдущее
От: Alexander Reichstadt
Дата:
Сообщение: Ways to edit users and permissions for database
Следующее
От: Alexander Reichstadt
Дата:
Сообщение: Re: Ways to edit users and permissions for database