Re: [postgresql 9.2.3] schema and privileges

From: Prashanth Goriparthi <gprashanthkumar(at)gmail(dot)com>
To: Christian Hammers <ch(at)lathspell(dot)de>
Cc: kobolds <dreammes2007(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: [postgresql 9.2.3] schema and privileges
Date: 2013-03-14 20:21:51
Message-ID: CA+Mf8bXZuqAbNoSnHPZkAjyOmxHAM+rfjr_HMn8Q3sOfPDa-SQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Like Christian Hammers already mentioned, you need to grant access to each
and every object in that schema to user1 for having access to it.

Here is an example of how those grants look like:

GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE table_x TO user1;

GRANT SELECT, UPDATE ON TABLE table_x_table_x_id_seq TO user1;

Same this applies for all functions/views etc etc., I hope this is clear to
you.

Thanking you,
Prashanth Kumar Goriparthi

On Thu, Mar 14, 2013 at 2:08 PM, Christian Hammers <ch(at)lathspell(dot)de> wrote:

> Read the last sentence again ,-) You gave rights to only the Schema not
> everything below it.
>
> bye,
> -christian-
> --
> Sent via pgsql-novice mailing list (pgsql-novice(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Marcel Ruff 2013-03-18 11:11:49 org.postgresql.util.PSQLException: ERROR: invalid page header in block 5869177 of relation base/17291/17420
Previous Message Christian Hammers 2013-03-14 20:08:56 Re: [postgresql 9.2.3] schema and privileges