Re: Default permissions for CREATE SCHEMA/TABLE?

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Yang Zhang <yanghatespam(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Default permissions for CREATE SCHEMA/TABLE?
Date: 2011-03-24 20:56:11
Message-ID: 20110324205611.GF4116@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Yang Zhang (yanghatespam(at)gmail(dot)com) wrote:
> Any way I can have all newly created schemas/tables be owned by, or
> have all permissions granted to, a certain group, without having to
> remember to GRANT ALL ON [SCHEMA|TABLE] TO that group? Thanks in
> advance.

ALTER DEFAULT PRIVILEGES FOR ROLE my_user IN SCHEMA my_schema
GRANT SELECT ON TABLES TO other_role;

http://www.postgresql.org/docs/9.0/static/sql-alterdefaultprivileges.html

Thanks,

Stephen

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Selena Deckelmann 2011-03-24 20:59:29 Re: foreign data wrappers
Previous Message Yang Zhang 2011-03-24 20:52:24 Default permissions for CREATE SCHEMA/TABLE?