Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] What can we learn from MySQL?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>,PostgreSQL advocacy <pgsql-advocacy(at)postgresql(dot)org>
Subject: Re: [HACKERS] What can we learn from MySQL?
Date: 2004-04-23 17:11:54
Message-ID: 40894E5A.4060102@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-advocacypgsql-hackerspgsql-www
Stephan Szabo wrote:

>>I know this to be true, but don't fully understand it... if our default
>>behavior is to fold lower, and we change it to just fold upper... then
>>in theory this shouldn't break anything since what used to be folder
>>lower will now simply be folder upper. the only people who will have a
>>problem are those who quote on one end but not the other, which is bad
>>practice anyways...  so i would say if your serious about it, make the
>>patch as GUC "case_folding" for upper or lower and get a taste for what
>>breaks inside the db.
>>    
>>
>
>I've tried just changing the parser to unconditionally casefold to upper.
>First thing that happens is that initdb breaks. In addition, you have
>potential issues with comparisons against the catalog's versions of
>standard functions as such if you allow the case folding to be changed
>after the catalogs are setup.
>
>  
>

ISTM that rather than a having a GUC setting, initdb would be the right 
time to make this choice. I'm not saying it would be easy, but it seems 
(without looking into it deeply) at least possible.

cheers

andrew

In response to

Responses

pgsql-www by date

Next:From: Bruce MomjianDate: 2004-04-23 17:13:19
Subject: Re: What can we learn from MySQL?
Previous:From: Bruce MomjianDate: 2004-04-23 17:08:30
Subject: Re: [HACKERS] What can we learn from MySQL?

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2004-04-23 17:13:19
Subject: Re: What can we learn from MySQL?
Previous:From: Bruce MomjianDate: 2004-04-23 17:08:30
Subject: Re: [HACKERS] What can we learn from MySQL?

pgsql-advocacy by date

Next:From: Bruce MomjianDate: 2004-04-23 17:13:19
Subject: Re: What can we learn from MySQL?
Previous:From: Bruce MomjianDate: 2004-04-23 17:08:30
Subject: Re: [HACKERS] What can we learn from MySQL?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group