| From: | Alan Hodgson <ahodgson(at)simkin(dot)ca> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: GRANT ALL ON recursive for all tables in my scheme? |
| Date: | 2008-03-05 00:00:39 |
| Message-ID: | 200803041600.39195@hal.medialogik.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin pgsql-general |
On Tuesday 04 March 2008, "A Lau" <lau(dot)studium(at)gmx(dot)net> wrote:
> I recently searched for a way to grant permissions to a new created user
> for all tables in a scheme or database. I just found ways who uses psql
> and scripts. But I'm astonished that there is no way to do it with the
> "grant all on database [schema]..."-option. Actually i thought that a
> grant on a schema or database would recusivly set the accoding
> permissions to the corresponding objects (eg. tables, views...). Is there
> a way to do it easily in SQL-Syntax without psql and scripting? Why it
> can't be done with the grant-operator?
>
Normally you would have a group role or roles that have appropriate
permissions already, and then just grant role to new_user for group
membership.
--
Alan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alan Hodgson | 2008-03-05 00:02:15 | Re: using warm standby with drbd??? |
| Previous Message | Tom Lane | 2008-03-04 23:14:50 | Re: GRANT ALL ON recursive for all tables in my scheme? |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alan Hodgson | 2008-03-05 00:02:15 | Re: using warm standby with drbd??? |
| Previous Message | Ralph Smith | 2008-03-04 23:53:22 | I don't understand this WARNING on pg_ctl startup |