From: Ross J. Reedstrom <reedstrm@rice.edu>
To: pgsql-admin@postgresql.org
Subject: Re: pg_user, changing priviliges
Date: Thu, 26 Oct 2000 10:08:18 -0500
Message-ID: <20001026100818.A29490@rice.edu> (raw)
In-Reply-To: <20001026082456.B6461@poznan.mtl.pl>
References: <20001026082456.B6461@poznan.mtl.pl>
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@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: reedstrm@rice.edu
Subject: Re: pg_user, changing priviliges
In-Reply-To: <20001026100818.A29490@rice.edu>
References: <20001026082456.B6461@poznan.mtl.pl> <20001026100818.A29490@rice.edu>
* 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