Re: ALTER ROLE role-name-with-hyphen

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tom Copeland <tom(at)infoether(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ALTER ROLE role-name-with-hyphen
Date: 2008-08-08 20:57:36
Message-ID: 18650.1218229056@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Copeland <tom(at)infoether(dot)com> writes:
> This is probably a new bee question... but, how do I change the
> password of a role that has a hyphen in the name?

You need double quotes, not single quotes. Read about SQL identifier
syntax in the fine manual ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Copeland 2008-08-08 21:09:13 Re: ALTER ROLE role-name-with-hyphen
Previous Message Tom Copeland 2008-08-08 20:49:26 ALTER ROLE role-name-with-hyphen