Re: [HACKERS] Re: [GENERAL] Variable case database names - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] Re: [GENERAL] Variable case database names
Date
Msg-id Pine.LNX.4.21.0001230145500.3007-100000@localhost.localdomain
Whole thread Raw
In response to Re: [HACKERS] Re: [GENERAL] Variable case database names  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2000-01-20, Tom Lane mentioned:

> Peter Eisentraut <peter_e@gmx.net> writes:
> > 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,
> 
> I think you are probably right.  The backend might try to lowercase the
> name when it gets it, but it seems like libpq shouldn't be doing so
> (any more than it's responsible for downcasing identifiers used in
> SQL commands).
> 
> If the backend *does* lowercase the DB name used in a connect command,
> is there any way to use a mixed-case DB name?  I'm not sure there is...

The backend doesn't lower case it. I removed that part in libpq and now
it works fine.

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] New install doc
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] New INSTALL text file