Re: pg_user, changing priviliges

From: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_user, changing priviliges
Date: 2000-10-26 15:08:18
Message-ID: 20001026100818.A29490@rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Oct 26, 2000 at 08:24:56AM +0200, Marcin Mazurek wrote:
> I'm trying to give a createuser privilige by changing pg_users, i'm logged
> in as a superuser.
>
>
> Why I can't do it?
>

reedstrm=> \d pg_user
View = pg_user
...

Because pg_user is a view on pg_shadow. Can't update a view. The right
way to go about adding createuser privilage to a user is:

ALTER USER foouser CREATEUSER;

Ross

--
Ross J. Reedstrom, Ph.D., <reedstrm(at)rice(dot)edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sivagami . 2000-10-26 15:30:14 Create Procedure syntax
Previous Message Tom Lane 2000-10-26 15:00:24 Re: [SQL] pg_atoi: error in "template1": can't parse "template1"