| From: | Herbert Liechti <herbert(dot)liechti(at)thinx(dot)ch> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Wanted: Trick for granting permissions to users with hyphens |
| Date: | 2003-11-19 16:20:19 |
| Message-ID: | 200311191720.19023.herbert.liechti@thinx.ch |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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
Thanks and best regards
Herbie
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Herbert Liechti http://www.thinx.ch
The content management company. Visit http://www.contentx.ch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Treat | 2003-11-19 16:22:16 | Re: 7.4RC2 --> 7.4 |
| Previous Message | Robert Treat | 2003-11-19 16:19:44 | Re: 7.4 broke psql |