From: | Łukasz Jarych <jaryszek(at)gmail(dot)com> |
---|---|
To: | "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Read only to schema |
Date: | 2018-07-13 10:58:56 |
Message-ID: | CAGv31odLZfO12niaO8KJYzm0V5NDExZHyCcGiGkOZzpj_fvkZA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Maybe read-only view?
Best,
Jacek
pt., 13 lip 2018 o 07:00 Łukasz Jarych <jaryszek(at)gmail(dot)com> napisał(a):
> Hi Guys,
>
> Yesterday i tried all day to figure out system to read only schemas.
>
> I want to :
>
> 1. Create user who can login (user: jaryszek)
> 2. Create role who can read only data (only watching tables) (role:
> readonly)
> 3, Create role who can read all data (inserting, deleting, altering,
> dropping) (role: readall)
>
> What sqls should i use for this?
> What grants should i add?
>
> And now i am logged as jaryszek
>
> I want to grant myself role read only to schema public (when owner is
> postgres).
> I want to review tables as views only,
> After work i want to grant myself role readall to schema public.
>
> It is possible?
> Or possible workaround ?
>
> Best,
> Jacek
>
From | Date | Subject | |
---|---|---|---|
Next Message | Rijo Roy | 2018-07-13 11:10:55 | Database Refresh confusion |
Previous Message | Achilleas Mantzios | 2018-07-13 10:43:59 | Re: Monitor repl slot size |