Re: Grant select for all tables of the 12 schemas of my one db ?
В списке pgsql-general по дате отправления:
| От | hubert depesz lubaczewski |
|---|---|
| Тема | Re: Grant select for all tables of the 12 schemas of my one db ? |
| Дата | |
| Msg-id | 20211013095214.GA17654@depesz.com обсуждение исходный текст |
| Ответ на | Grant select for all tables of the 12 schemas of my one db ? (celati Laurent <laurent.celati@gmail.com>) |
| Ответы |
Re: Grant select for all tables of the 12 schemas of my one db ?
|
| Список | pgsql-general |
On Wed, Oct 13, 2021 at 11:04:42AM +0200, celati Laurent wrote: > Good morning, > > I work on Postgresql 13 (windows) and Postgis. > For some "basic USERS", i have to grant select/read for all tables of the > 12 schemas of my db ? > > With Postgresql 13, i am obliged to write : > *GRANT SELECT ON ALL TABLES IN SCHEMA TO username ?* Yes. For each schema. You could write a DO query, or even get psql to run it automaticaly-ish for every schema, but it will still be separate query for each schema. depesz
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера