set role issue

Поиск
Список
Период
Сортировка
От Fabrice Chapuis
Тема set role issue
Дата
Msg-id CAA5-nLDJs1BAD8B3tZm7ewrWSTgM7qSYFnwax=0BcXu9ps16-g@mail.gmail.com
обсуждение исходный текст
Ответы Re: set role issue
Список pgsql-hackers
Hi,

I do the following command when connecting locally with user postgres

SET ROLE asuperrole; -- asuperrole has superuser privilege
GRANT SELECT ON pg_statistic TO test_role;

SELECT
  grantee,
  grantor,
  table_catalog,
  table_schema,
  table_name,
  privilege_type
FROM
  information_schema.role_table_grants
WHERE
  table_name = 'pg_statistic'

 test_role| postgres | db012d00      | pg_catalog   | pg_statistic | SELECT   

why the grantee is postgres?     

Thanks in advance for clarification 

Regards,

Fabrice

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