Re: hanging psql session while granting...

From: Manuel Trujillo <manueltrujillo(at)dorna(dot)es>
To: "Kumar, Lakshmi ""(Cognizant)" <NLakshmi(at)chn(dot)cognizant(dot)com>
Cc: pg-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: hanging psql session while granting...
Date: 2002-02-14 13:06:14
Message-ID: 1013691974.924.23.camel@klingon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, 2002-02-14 at 13:45, Kumar, Lakshmi (Cognizant) wrote:

> How can i change the Grants over tables to other users ... is there any
> round about way ?
> Or where could be the problem.

First, I imagine you have permissions to make this.
When I want to change the permissions over a table, or tables, I use
this:

psql name_of_you_database < kk.sql | sed -e '1,3d' | awk '{print "GRANT
"$priv" ON "$1" TO "$user";"}'>gdornaout

psql motograndprix < gdornaout

You need to set $priv (privileges), $user (affected user) firts.

--
Manuel Trujillo manueltrujillo(at)dorna(dot)es
Technical Engineer http://www.motograndprix.com
Dorna Sports S.L. +34 93 4702864

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jean-Michel POURE 2002-02-14 13:21:00 Re: Locale support
Previous Message Kumar, Lakshmi (Cognizant) 2002-02-14 12:45:43 hanging psql session while granting...