From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | prlw1(at)cam(dot)ac(dot)uk |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] Variable case database names |
Date: | 2000-01-20 21:55:11 |
Message-ID: | Pine.LNX.4.21.0001202242260.349-100000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
There is some code in libpq which converts all database names to
lower-case, unless it's double quoted. That seems a little ill-conceived
to me, since you'd actually have to pass it something like
PGconnectdb("dbname=\"Newnham\"");
If anything, this would make it inconvenient it psql, because you'd have
to write
\c '"Newnham"'
since
\c "Newnham"
is interpreted differently.
Does anyone have an explanation for this? Why not leave the name as is?
On 2000-01-20, Patrick Welche mentioned:
> List of databases
> Database | Owner
> ------------+----------
> Newnham | prlw1
>
> % psql Newnham
> psql: connection to database "newnham" failed - FATAL 1: Database "newnham" does not exist in the system catalog.
>
> template1=> \c 'Newnham'
> FATAL 1: Database "newnham" does not exist in the system catalog.
> Previous connection kept
>
>
> How can I connect to a database with a variable case name?
>
> Cheers,
>
> Patrick
>
> ************
>
>
--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-01-20 22:04:45 | Re: [HACKERS] Re: [GENERAL] Variable case database names |
Previous Message | Peter Eisentraut | 2000-01-20 21:55:03 | Re: [GENERAL] Unsigned Datatypes |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2000-01-20 21:57:57 | Install file |
Previous Message | Peter Eisentraut | 2000-01-20 21:54:56 | Re: [HACKERS] COPY problems with psql / libpq |