Re: CREATE USER system privilege?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oli Sennhauser <oli(dot)sennhauser(at)bluewin(dot)ch>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: CREATE USER system privilege?
Date: 2003-12-22 15:15:06
Message-ID: 15986.1072106106@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Oli Sennhauser <oli(dot)sennhauser(at)bluewin(dot)ch> writes:
> I wanted to create a user who can create other users.

That is a superuser.

> --> Why does CREATE USER $1 fail???

You need to use EXECUTE to construct this query as a string.
Utility statements in general don't handle parameters.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-12-22 15:21:09 Re: Opinion wanted: Default select rights for users via public schema
Previous Message Oli Sennhauser 2003-12-22 11:20:24 Opinion wanted: Default select rights for users via public schema