Re: Valid role name (PostgreSQL 9.0.4)

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: Grzegorz Szpetkowski <gszpetkowski(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Valid role name (PostgreSQL 9.0.4)
Date: 2011-04-08 03:44:14
Message-ID: BANLkTi=1P+sfgaR9K4fq59DCmeHpy1faPw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Thu, Apr 7, 2011 at 11:21 PM, Grzegorz Szpetkowski
<gszpetkowski(at)gmail(dot)com> wrote:
> Then I run:
>
> psql -c "ALTER ROLE user CREATEDB"
> ERROR:  syntax error at or near "user"
> LINE 1: ALTER ROLE user CREATEDB
>                  ^

If you quote the "user" username like so:

ALTER ROLE "user" CREATEDB;

the command should work as you expected it to.

Josh

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Mathieu Dubois 2011-04-08 06:31:57 Re: What does \timing measure?
Previous Message Tom Lane 2011-04-08 03:36:41 Re: Superuser accout (PostgreSQL 9.0.4)