| От | Yves Dorfsman |
|---|---|
| Тема | Re: How to list and remove a user in postgres ? |
| Дата | |
| Msg-id | Jjvb5.73871$ef6.989161@news1.rdc1.ab.home.com обсуждение |
| Ответ на | Re: How to list and remove a user in postgres ? (HomerWelch <hjwxxx@home.com>) |
| Список | pgsql-general |
HomerWelch <hjwxxx@home.com> wrote:
> (\h createuser.) I don't recall a method for listing all
> users.
man psql
has a lot of good information.
Log in as postgres (or whoever is your postgres super user), then run
psql, and:
\dS
Will give you a list of the system tables (relations).
\dS pg_user
Will give you the structure of that table, and actually some more help.
SELECT usename, usesuper from pg_shadow;
Will give you a list of the users that are define, and indicate which one
is the super user.
Yves.
----
Yves Dorfsman dorfsmay@cuug.ab.ca
http://www.cuug.ab.ca/~dorfsmay
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера