Search Postgresql Archives

Re: Default permissions for CREATE SCHEMA/TABLE?

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

 



* 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

Attachment: signature.asc
Description: Digital signature


[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