Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-27 Thread Lamar Owen
Tom Lane wrote: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Lamar Owen writes: > >> Ok, let me repeat -- the '--enable-locale' setting will not affect the > >> collation sequence problem on RedHat. If you set PostgreSQL to use > >> locale, it uses it. If you configure PostgreSQL to not us

SV: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-27 Thread Jarmo Paavilainen
Hi, ... > LC_NUMERIC and LC_TIME ... > The timeofday() make output via strftime() if you set LC_ALL, a query > like: select timeofday()::timestamp; Actually *I would* expect it to return a localized string. But then again I always expect BE to use '.' as decimal point ( I must be damaged :-/ ).

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-27 Thread Karel Zak
On Fri, 24 Nov 2000, Tom Lane wrote: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Tom Lane writes: > >> I propose, therefore, that in an --enable-locale installation, initdb > >> should save its values for LC_COLLATE and LC_CTYPE in pg_control, and > >> backend startup should restore these

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-26 Thread Trond Eivind GlomsrØd
[EMAIL PROTECTED] (Trond Eivind GlomsrØd) writes: > Tom Lane <[EMAIL PROTECTED]> writes: > > > Also, since "LC_COLLATE=en_US" seems to misbehave rather spectacularly > > on recent RedHat releases, I propose that initdb change "en_US" to "C" > > if it finds that setting. > > It does not misbeh

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-26 Thread Trond Eivind GlomsrØd
Tom Lane <[EMAIL PROTECTED]> writes: > Also, since "LC_COLLATE=en_US" seems to misbehave rather spectacularly > on recent RedHat releases, I propose that initdb change "en_US" to "C" > if it finds that setting. It does not misbehave in glibc (it's not Red Hat specific). Basically, glibc is the

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Do local-enabled compiles have the LIKE optimization disabled always? No. They do a run-time check to see what locale is active. regards, tom lane

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Bruce Momjian
> I'm having a hard time believing Lamar's recollection, also. I wonder > if there could have been some other factor involved? One possible line > of thought: a non-locale-enabled compilation, installed to replace a > locale-enabled one, would behave rather inconsistently if run on the > same da

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Lamar Owen writes: >> Ok, let me repeat -- the '--enable-locale' setting will not affect the >> collation sequence problem on RedHat. If you set PostgreSQL to use >> locale, it uses it. If you configure PostgreSQL to not use locale, the >> collation

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Peter Eisentraut
Lamar Owen writes: > Ok, let me repeat -- the '--enable-locale' setting will not affect the > collation sequence problem on RedHat. If you set PostgreSQL to use > locale, it uses it. If you configure PostgreSQL to not use locale, the > collation set by LANG, LC_ALL, or LC_COLLATE is _STILL_ hon

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Lamar Owen
Peter Eisentraut wrote: > Lamar Owen writes: > > Yes, I want to ignore their default. > If you want to do that then the infinitely better solution is to compile > without locale support in the first place. (Make the locale-enabled > server a separate package.) Alternatively, the locale of the

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Peter Eisentraut
Tom Lane writes: > > I certainly don't like treating en_US specially, when in fact all locales > > are affected by this. > > Well, my thought was that another locale, say en_FR, would be far more > likely to be something that the system's user had explicitly chosen to > use at some point, IIRC,

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Peter Eisentraut
Lamar Owen writes: > Yes, I want to ignore their default. If you want to do that then the infinitely better solution is to compile without locale support in the first place. (Make the locale-enabled server a separate package.) Alternatively, the locale of the postgres user to POSIX. > I can d

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Lamar Owen
Tom Lane wrote: > Lamar Owen <[EMAIL PROTECTED]> writes: > I think your complaints about RedHat's default are right back in your > lap ;-). Do you want to ignore their default, or not? Yes, I want to ignore their default. This problem is more than just cosmetic, thanks to the bugs that sparked

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Lamar Owen <[EMAIL PROTECTED]> writes: > A command-line argument to initdb would suffice to override -- maybe a > '--initlocale' parameter?? Hardly need one, when setting LANG or LC_ALL will do just as well. > Now, what sort of default for --initlocale. I think your complaints about RedHat'

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Lamar Owen
Tom Lane wrote: > Don Baccus <[EMAIL PROTECTED]> writes: > > Are you SURE you want to use en_US collation? [no] > > (ask the question, default to no?) > > Yes, a question in initdb is ugly, this whole thing is ugly. > A question in initdb won't fly for RPM installations, since the RPMs > try t

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Don Baccus <[EMAIL PROTECTED]> writes: > Are you SURE you want to use en_US collation? [no] > (ask the question, default to no?) > Yes, a question in initdb is ugly, this whole thing is ugly. A question in initdb won't fly for RPM installations, since the RPMs try to do initdb themselves (or am

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Don Baccus
At 07:32 PM 11/24/00 -0500, Tom Lane wrote: >Possible compromise: let initdb accept en_US, but have it spit out a >warning message: > >NOTICE: initializing database with en_US collation order. >If you're not certain that's what you want, then it's probably not what >you want. We recommend you set

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Lamar Owen
Tom Lane wrote: > Lamar Owen <[EMAIL PROTECTED]> writes: > > Collation was the same, regardless of the --enable-locale > > setting. I got lots of 'bug' reports about the RPM's failing > Hmm. I reviewed that thread and found this comment from you: > : In a nutshell, yes. /etc/sysconfig/i18n

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> Possible compromise: let initdb accept en_US, but have it spit out a >> warning message: > I certainly don't like treating en_US specially, when in fact all locales > are affected by this. Well, my thought was that another locale

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Peter Eisentraut
Tom Lane writes: > Possible compromise: let initdb accept en_US, but have it spit out a > warning message: > > NOTICE: initializing database with en_US collation order. > If you're not certain that's what you want, then it's probably not what > you want. We recommend you set LC_COLLATE to "C" a

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Lamar Owen <[EMAIL PROTECTED]> writes: > Collation was the same, regardless of the --enable-locale > setting. I got lots of 'bug' reports about the RPM's failing > regression, giving an unexpected sort order (see the archives -- the > best model thread's start post is: > http://www.postgresql.org

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Lamar Owen
Tom Lane wrote: > Lamar Owen <[EMAIL PROTECTED]> writes: > > Oh, and to make matters that much worse, on a RedHat system it doesn't > > matter if you build with or without --enable-locale -- locale support is > > in the libc used, and locale support gets used regardless of what you > > select on t

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Possible compromise: let initdb accept en_US, but have it spit out a warning message: NOTICE: initializing database with en_US collation order. If you're not certain that's what you want, then it's probably not what you want. We recommend you set LC_COLLATE to "C" and re-initdb. For more informa

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Lamar Owen <[EMAIL PROTECTED]> writes: > I am not at all happy about the 'broken' RedHat locale -- the quick and > dirty solution is to remove or rename '/etc/sysconfig/i18n' -- but that > doesn't cure the root issue. Actually, that suggestion points out that just nailing down LC_COLLATE at initd

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Lamar Owen <[EMAIL PROTECTED]> writes: > Oh, and to make matters that much worse, on a RedHat system it doesn't > matter if you build with or without --enable-locale -- locale support is > in the libc used, and locale support gets used regardless of what you > select on the configure line :-(. I

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Lamar Owen
Tom Lane wrote: > that contains only (or mostly) words like that. But I've got strong > doubts that the average user of a default RedHat installation expects > *all* data to get sorted that way, or that he wants us to honor a > default that he didn't ask for to the extent of disabling LIKE > opti

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: >> I have now received positive proof that en_US sort order on RedHat is >> broken. For example, it asserts >> '/root/' < '/root0' >> but >> '/root/t' > '/root0' >> I defy you to find anyone in the US who will say that that is a >> reasonable definitio

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Peter Eisentraut
Tom Lane writes: > >> Also, since "LC_COLLATE=en_US" seems to misbehave rather spectacularly > >> on recent RedHat releases, I propose that initdb change "en_US" to "C" > >> if it finds that setting. (Are there any platforms where there are > >> non-bogus differences between the two?) > > > The

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> I propose, therefore, that in an --enable-locale installation, initdb >> should save its values for LC_COLLATE and LC_CTYPE in pg_control, and >> backend startup should restore these settings from pg_control. > Note that when thes

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Peter Eisentraut
Tom Lane writes: > I propose, therefore, that in an --enable-locale installation, initdb > should save its values for LC_COLLATE and LC_CTYPE in pg_control, and > backend startup should restore these settings from pg_control. Note that when these are unset there might still be a "catch-all" loca

[HACKERS] OK, that's one LOCALE bug report too many...

2000-11-24 Thread Tom Lane
... and I am not going to allow 7.1 to go out without a fix for this class of problems. I'm fed up ;-) As near as I can tell from the setlocale() man page, the only locale categories that are really hazardous for us are LC_COLLATE and LC_CTYPE; the other categories like LC_MONETARY affect only I