pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel J. Summers <daniel@djs-consulting.com>
To: pgsql-admin@postgresql.org
Subject: Re: Permissions to a schema
Date: Tue, 03 Feb 2009 18:28:42 -0700
Message-ID: <4988EF4A.8070701@djs-consulting.com> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE876001D20B97@SAB-FENWICK.sab.uiuc.edu>
References: <B10E6810AC2A2F4EA7550D072CDE876001D20B97@SAB-FENWICK.sab.uiuc.edu>

Campbell, Lance wrote:
>
> How do I do the following:
>
> 1) Create a user group.
>
> 2) Assign access to select, delete, insert, and update to any table 
> found in the following X number of schemas.
>
> 3) Assign the newly created user group permissions to a new user.
>
When you're going through the tables, don't forget the sequences for any 
"serial" fields you may have. You'll get errors trying to insert, even 
though you've granted INSERT on that table. As best I can tell (haven't 
seen this in a document anywhere), your role needs SELECT and UPDATE on 
those sequences.

-- 
Daniel J. Summers
*Owner, DJS Consulting* Support <http://support.djs-consulting.com/; • 
Tech Blog <http://www.djs-consulting.com/linux/blog;

daniel@djs-consulting.com <mailto:daniel@djs-consulting.com> • 
http://www.djs-consulting.com <http://www.djs-consulting.com/;

GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w !O M--
V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e h---- r+++ y++++



view thread (3+ messages)

Message-ID: <4988EF4A.8070701@djs-consulting.com>
Permalink:  ../4988EF4A.8070701@djs-consulting.com/
Also on:    postgresql.org/message-id/4988EF4A.8070701@djs-consulting.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: daniel@djs-consulting.com
  Subject: Re: Permissions to a schema
  In-Reply-To: <4988EF4A.8070701@djs-consulting.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox