Re: [HACKERS] Re: [GENERAL] Variable case database names

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: prlw1(at)cam(dot)ac(dot)uk, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Re: [GENERAL] Variable case database names
Date: 2000-01-23 01:30:07
Message-ID: Pine.LNX.4.21.0001230145500.3007-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 2000-01-20, Tom Lane mentioned:

> Peter Eisentraut <peter_e(at)gmx(dot)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(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-01-23 03:18:13 Re: [GENERAL] max(oid)
Previous Message Peter Eisentraut 2000-01-23 01:28:59 Re: [GENERAL] max(oid)

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-01-23 01:30:43 Re: [HACKERS] Re: Status on 7.0
Previous Message Peter Eisentraut 2000-01-23 01:30:00 Re: [HACKERS] New INSTALL text file