Re: Defining permissions for tables, schema etc..

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: Defining permissions for tables, schema etc..
Date: 2009-12-10 08:21:48
Message-ID: 4B20AF9C.2000500@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

dipti shah wrote:
> Hi,
>
> We have started using PostGreSQL for more than 3 months and it looks
> awesome. Currently, we have been suing superuser by default as login
> account. Now, the users are getting increased and we want to go away
> with using superuser by default. We want to create the separate user
> account for every users and want to define the permission for each of
> them. For example, we want particular user cannot create schema, he
> can create tables only in particular schema, he can updates only few
> tables and also updates only few columns etc. In short, we want
> to define all available permission options. I am not aware of anything
> starting from creating new user account to assigning column level
> permissions. Could anyone please help me to start with this. What is
> the best way to start?
>

there are no per column privileges in postgres, but the rest of what
you're asking for is pretty straight forward.

permissions are managed with the GRANT and REVOKE commands, which can
operate on databases, schemas, tables, sequences, functions, and views.
and probably a few more things I'm not thinking of.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2009-12-10 08:22:16 Re: Defining permissions for tables, schema etc..
Previous Message Ashish Karalkar 2009-12-10 08:06:23 Re: Defining permissions for tables, schema etc..