Search Postgresql Archives

Re: Default permissions for CREATE SCHEMA/TABLE?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Any luck if I'm still on 8.4?

On Thu, Mar 24, 2011 at 3:17 PM, David Johnston <polobo@xxxxxxxxx> wrote:
> Keep in mind if you want to alter the GLOBAL privileges (i.e., the defaults)
> granted via PUBLIC you MUST NOT specify a schema.
>
> From what I can tell there is no way to associate a default owner different
> that the one executing the CREATE statement (though some inheritance cases
> do arise IIRC).
>
> David J.
>
> -----Original Message-----
> From: pgsql-general-owner@xxxxxxxxxxxxxx
> [mailto:pgsql-general-owner@xxxxxxxxxxxxxx] On Behalf Of Stephen Frost
> Sent: Thursday, March 24, 2011 4:56 PM
> To: Yang Zhang
> Cc: pgsql-general@xxxxxxxxxxxxxx
> Subject: Re:  Default permissions for CREATE SCHEMA/TABLE?
>
> * Yang Zhang (yanghatespam@xxxxxxxxx) 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
>
>



-- 
Yang Zhang
http://yz.mit.edu/

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux