Re: Set the permissions while creating database, schema, and tables - Mailing list pgsql-general

From John R Pierce
Subject Re: Set the permissions while creating database, schema, and tables
Date
Msg-id 4B7902CD.8040409@hogranch.com
Whole thread Raw
In response to Set the permissions while creating database, schema, and tables  (dipti shah <shahdipti1980@gmail.com>)
Responses Re: Set the permissions while creating database, schema, and tables  (dipti shah <shahdipti1980@gmail.com>)
List pgsql-general
dipti shah wrote:
> Hi,
>
> Could anyone please help me out here. I want to set the required
> permissions while creating PostGreSQL database, schema, and tables
> from stored procedures. Is it possible to do it while creating them?
>
> I could see that "OWNER" option is there while creating database but
> couldn't see such option for schema or table. Please let me know if I
> missed out something.
>
>
>     CREATE DATABASE sales OWNER salesapp TABLESPACE salesspace;
>
>
> With above command, can I grant permission to particular group of users?

you would use the GRANT command to grant permissions



pgsql-general by date:

Previous
From: dipti shah
Date:
Subject: Set the permissions while creating database, schema, and tables
Next
From: dipti shah
Date:
Subject: Re: Set the permissions while creating database, schema, and tables