Hi List, I want to find out all the users under a specific user. postgres is a superuser of postgresql, under in postres user i made one user ABC and under this ABC user i made XYZ,MNO,IJK users. Now i want to find out all the users, which r exist under in ABC user so what is the query for it? plz. help me. Thanks Ashok -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
> I want to find out all the users under a specific user. > postgres is a superuser of postgresql, > under in postres user i made one user ABC and > under this ABC user i made XYZ,MNO,IJK users. > > Now i want to find out all the users, which r exist > under in ABC user so what is the query for it? select relname, array_to_string(relacl,',') as acl from pg_class where array_to_string(relacl,',') ~ '/ABC[,$]'; HTH Ben K. Developer http://benix.tamu.edu
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера