Re: hanging psql session while granting...

Поиск
Список
Период
Сортировка
От Manuel Trujillo
Тема Re: hanging psql session while granting...
Дата
Msg-id 1013691974.924.23.camel@klingon
обсуждение исходный текст
Ответ на hanging psql session while granting...  ("Kumar, Lakshmi (Cognizant)" <NLakshmi@chn.cognizant.com>)
Ответы Useless index  (Brian McCane <bmccane@mccons.net>)
Список 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@dorna.es
Technical Engineer      http://www.motograndprix.com
Dorna Sports S.L.       +34 93 4702864


В списке pgsql-admin по дате отправления:

Предыдущее
От: Jean-Michel POURE
Дата:
Сообщение: Re: Locale support
Следующее
От: Brian McCane
Дата:
Сообщение: Useless index