Re: psql: FATAL: role "xyz" is not permitted to log in

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ralph Smith <smithrn(at)washington(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: psql: FATAL: role "xyz" is not permitted to log in
Date: 2008-04-04 21:11:49
Message-ID: 8422.1207343509@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ralph Smith <smithrn(at)washington(dot)edu> writes:
> I just can't connect to a database, though I can to others as other
> users...

You're confused about the rules for case sensitivity.

> postgres=# CREATE DATABASE LabNews_dev WITH OWNER=xyz ENCODING='UTF8' ;
> CREATE DATABASE

This got folded to lower case, since you didn't double-quote the
name. However, most places where you use a database name outside
the context of SQL commands, no such folding occurs --- in particular
not on psql's command line, and IIRC not in pg_hba.conf either.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Dunstan 2008-04-04 21:17:48 Re: modules
Previous Message Ralph Smith 2008-04-04 21:06:43 psql: FATAL: role "xyz" is not permitted to log in