| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| 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:47:34 |
| Message-ID: | 200311191647.hAJGlYG24335@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Herbert Liechti 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
Double-quotes:
test=> GRANT SELECT, UPDATE, INSERT, DELETE ON test TO "www-data";
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Johan Fredrik Øhman | 2003-11-19 16:49:54 | Re: Storing a chain |
| Previous Message | Tim Clarke | 2003-11-19 16:45:43 | Re: Storing a chain |