Re: Wanted: Trick for granting permissions to users with hyphens

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Herbert Liechti <herbie(at)thinx(dot)ch>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Wanted: Trick for granting permissions to users with hyphens
Date: 2003-11-19 16:44:09
Message-ID: 20031119164409.GA20196@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 19, 2003 at 16:48:49 +0100,
Herbert Liechti <herbie(at)thinx(dot)ch> wrote:
> Hello
>
> I like to grant some permissions to the user www-data (default user
> for apache under debian)
>
> GRANT SELECT, UPDATE, INSERT, DELETE ON customer TO herbie, www-data;
>
> The statements throws the following error:
> ERROR: parser: parse error at or near "-" at character 64
>
> Seems to me that hyphens are not allowed for user names. But a »createuser
> www-data« is working correct an I can access the database with that
> user.
>
> I tried to quote the www-data with 'www-data', www\-data with
> the same result.
>
> Any hints? I'm using 7.3.2

Single quotes are for data; use double quotes for including special characters
in names.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Franco Bruno Borghesi 2003-11-19 16:45:21 pg_clog problems
Previous Message Bruce Momjian 2003-11-19 16:43:51 Re: 7.4 broke psql