From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | gerrit(dot)geurs(at)hp(dot)com |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #8373: can create database with long name , but can't connect |
Date: | 2013-08-07 15:35:52 |
Message-ID: | 20130807153552.GG10718@eldon.alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
gerrit(dot)geurs(at)hp(dot)com wrote:
> template1=# CREATE DATABASE vergunnigen_sit;
> CREATE DATABASE
> template1=# GRANT ALL PRIVILEGES ON DATABASE vergunnigen_sit to postgres;
> GRANT
> template1=# \q
> -bash-4.1$ psql vergunningen_sit
> psql: FATAL: database "vergunningen_sit" does not exist
>
>
> When I do a \LIST, THE LONG NAME IS LISTED.
I think you have misdiagnosed the problem. Maybe your psql is trying to
connect to another server, not the one on which you just created the
database. It certainly works for me:
alvherre=# create database "you think that's a long database name, huh?";
CREATE DATABASE
alvherre=# \q
$ psql -d "you think that's a long database name, huh?"
psql (9.2.4)
Digite «help» para obtener ayuda.
you think that's a long database name, huh?=# select current_database();
-[ RECORD 1 ]----+--------------------------------------------
current_database | you think that's a long database name, huh?
You can use up to 63 bytes in a database name (or any other identifier,
for that matter).
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2013-08-07 16:19:53 | Re: BUG #8335: trim() un-document behaviour |
Previous Message | Pavan Deolasee | 2013-08-07 15:32:31 | Re: BUG #8373: can create database with long name , but can't connect |