Re: Set the permissions while creating database, schema, and tables

From: John R Pierce <pierce(at)hogranch(dot)com>
To: dipti shah <shahdipti1980(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Set the permissions while creating database, schema, and tables
Date: 2010-02-15 08:16:13
Message-ID: 4B7902CD.8040409@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dipti shah 2010-02-15 08:49:34 Re: Set the permissions while creating database, schema, and tables
Previous Message dipti shah 2010-02-15 07:35:30 Set the permissions while creating database, schema, and tables