Lists: | Postg토토 결과SQL : Postg토토 결과SQL 메일 링리스트 : 2008-10-24 이후 PGSQL-BUGS 10:51 |
---|
From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | "Harvey, Allan AC" <HarveyA(at)OneSteel(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Upgrade from 7.4.5 to 8.3.3 |
Date: | 2008-10-24 10:51:52 |
Message-ID: | 4901A8C8.3090907@sun.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg토토 결과SQL : Postg토토 결과SQL 메일 링리스트 : 2008-10-24 이후 PGSQL-BUGS 10:51 |
Hmm, It does not look good. Your OS does not return proper information about
codeset. Following code is broken:
setlocale(LC_CTYPE, ctype);
sys = nl_langinfo(CODESET);
sys = strdup(sys);
See
http://www.opengroup.org/onlinepubs/009695399/functions/nl_langinfo.html
It seems you need to fix OS first. After that we can add CODESET mapping to
PostgreSQL.
Zdenek
Harvey, Allan AC napsal(a):
> Zdenek
>
> Thanks for your reply.
>
>> I guess we don't have locale mapping for SCO OpenServer5.7. See
>> http://doxygen.postgresql.org/chklocale_8c-source.html
>
> Browser Timed out. (?)
>
>> Could you run following code:
>> http://archives.postgresql.org/pgsql-hackers/2007-09/msg01168.php
>>
>> and send output.
>>
>> Zdenek
>
> Output as requested:
>
> bash-2.05$ for LOCALE in `locale -a`; do locale_test $LOCALE; done
> C_C.C ... - NO MATCH
> cs_CZ.ISO8859-2 ... - NO MATCH
> english_uk.ISO8859-15 ... - NO MATCH
> english_uk.8859 ... - NO MATCH
<snip>
--
Zdenek Kotala Sun Microsystems
Prague, Czech Republic http://sun.com/postgresql
From: | "Harvey, Allan AC" <HarveyA(at)OneSteel(dot)com> |
---|---|
To: | <Zdenek(dot)Kotala(at)Sun(dot)COM> |
Cc: | <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: Upgrade from 7.4.5 to 8.3.3 |
Date: | 2008-10-26 22:16:50 |
Message-ID: | E97A5BB7699CAD48BE2711E71247116504E74057@ntlmsg03.onesteel.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Zdenek,
>
> Hmm, It does not look good. Your OS does not return proper
> information about
> codeset. Following code is broken:
>
> setlocale(LC_CTYPE, ctype);
> sys = nl_langinfo(CODESET);
> sys = strdup(sys);
>
> See
> http://www.opengroup.org/onlinepubs/009695399/functions/nl_lan
ginfo.html
>It seems you need to fix OS first. After that we can add CODESET mapping to
>PostgreSQL.
> Zdenek
I don't think this is possible.
Can you give me an indication what problems I should look out for?
Regression testing only showed some date format issues if I remeber correctly.
Allan
Harvey, Allan AC napsal(a):
> Zdenek
>
> Thanks for your reply.
>
>> I guess we don't have locale mapping for SCO OpenServer5.7. See
>> http://doxygen.postgresql.org/chklocale_8c-source.html
>
> Browser Timed out. (?)
>
>> Could you run following code:
>> http://archives.postgresql.org/pgsql-hackers/2007-09/msg01168.php
>>
>> and send output.
>>
>> Zdenek
>
> Output as requested:
>
> bash-2.05$ for LOCALE in `locale -a`; do locale_test $LOCALE; done
> C_C.C ... - NO MATCH
> cs_CZ.ISO8859-2 ... - NO MATCH
> english_uk.ISO8859-15 ... - NO MATCH
> english_uk.8859 ... - NO MATCH
<snip>
--
Zdenek Kotala Sun Microsystems
Prague, Czech Republic http://sun.com/postgresql
The material contained in this email may be confidential, privileged or copyrighted. If you are not the intended recipient, use, disclosure or copying of this information is prohibited. If you have received this document in error, please advise the sender and delete the document. Neither OneSteel nor the sender accept responsibility for any viruses contained in this email or any attachments.
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | "Harvey, Allan AC" <HarveyA(at)OneSteel(dot)com> |
Cc: | Zdenek(dot)Kotala(at)Sun(dot)COM, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Upgrade from 7.4.5 to 8.3.3 |
Date: | 2008-10-27 09:55:44 |
Message-ID: | 49059020.2040804@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Harvey, Allan AC wrote:
> Zdenek,
>
>> Hmm, It does not look good. Your OS does not return proper
>> information about
>> codeset. Following code is broken:
>>
>> setlocale(LC_CTYPE, ctype);
>> sys = nl_langinfo(CODESET);
>> sys = strdup(sys);
>>
>> See
>> http://www.opengroup.org/onlinepubs/009695399/functions/nl_lan
> ginfo.html
>
>> It seems you need to fix OS first. After that we can add CODESET mapping to
>> PostgreSQL.
>
>> Zdenek
>
> I don't think this is possible.
>
> Can you give me an indication what problems I should look out for?
SQL_ASCII might work tolerably if all your clients use the same client
encoding.
From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | "Harvey, Allan AC" <HarveyA(at)OneSteel(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Upgrade from 7.4.5 to 8.3.3 |
Date: | 2008-10-30 14:46:14 |
Message-ID: | 4909C8B6.9070706@sun.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Harvey, Allan AC napsal(a):
> Zdenek,
>
>> Hmm, It does not look good. Your OS does not return proper
>> information about
>> codeset. Following code is broken:
>>
>> setlocale(LC_CTYPE, ctype);
>> sys = nl_langinfo(CODESET);
>> sys = strdup(sys);
>>
>> See
>> http://www.opengroup.org/onlinepubs/009695399/functions/nl_lan
> ginfo.html
>
>> It seems you need to fix OS first. After that we can add CODESET mapping to
>> PostgreSQL.
>
>> Zdenek
>
> I don't think this is possible.
>
> Can you give me an indication what problems I should look out for?
> Regression testing only showed some date format issues if I remeber correctly.
>
I think, problem could be on two places:
1) libc is broken and does not return correct values.
2) locale definition does not contain CODESET information.
Do you use system libc or glibc? You can try create own locale by localedef and
test what happen.
Zdenek
From: | "Harvey, Allan AC" <HarveyA(at)OneSteel(dot)com> |
---|---|
To: | <Zdenek(dot)Kotala(at)Sun(dot)COM> |
Cc: | <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: Upgrade from 7.4.5 to 8.3.3 |
Date: | 2008-10-30 22:10:46 |
Message-ID: | E97A5BB7699CAD48BE2711E71247116504EB6E01@ntlmsg03.onesteel.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Zdenek,
> Harvey, Allan AC napsal(a):
> > Zdenek,
> >
> >> Hmm, It does not look good. Your OS does not return proper
> >> information about
> >> codeset. Following code is broken:
> >>
> >> setlocale(LC_CTYPE, ctype);
> >> sys = nl_langinfo(CODESET);
> >> sys = strdup(sys);
> >>
> >> See
> >> http://www.opengroup.org/onlinepubs/009695399/functions/nl_lan
> > ginfo.html
> >
> >> It seems you need to fix OS first. After that we can add
> CODESET mapping to
> >> PostgreSQL.
> >
> >> Zdenek
> >
> > I don't think this is possible.
> >
> > Can you give me an indication what problems I should look out for?
> > Regression testing only showed some date format issues if I
> remeber correctly.
> >
>
> I think, problem could be on two places:
>
> 1) libc is broken and does not return correct values.
> 2) locale definition does not contain CODESET information.
>
> Do you use system libc or glibc? You can try create own
> locale by localedef and
> test what happen.
>
> Zdenek
>
I think it would have to be glibc as I used the gcc loaded with the "skunkware" tools that SCO provide.
To date I have had no operational problems, I guess it must be a relatively simple use of postgres.
So I thank you and all the others for their time and suggest that we let this one slide unless you really want to get to the bottom of it. I have the time, just not the understanding of "locale"s and the implications and implementations.
Allan
The material contained in this email may be confidential, privileged or copyrighted. If you are not the intended recipient, use, disclosure or copying of this information is prohibited. If you have received this document in error, please advise the sender and delete the document. Neither OneSteel nor the sender accept responsibility for any viruses contained in this email or any attachments.
From: | Craig Ringer <craig(at)postnewspapers(dot)com(dot)au> |
---|---|
To: | "Harvey, Allan AC" <HarveyA(at)OneSteel(dot)com> |
Cc: | Zdenek(dot)Kotala(at)Sun(dot)COM, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Upgrade from 7.4.5 to 8.3.3 |
Date: | 2008-11-01 12:56:19 |
Message-ID: | 490C51F3.5090501@postnewspapers.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Harvey, Allan AC wrote:
>> Do you use system libc or glibc? You can try create own
>> locale by localedef and
>> test what happen.
>
> I think it would have to be glibc as I used the gcc loaded with the "skunkware" tools that SCO provide.
gcc may be, and often is, used with the system libc. It'd be much less
useful otherwise, since you generally can't link to more than one libc
without a great deal of trouble, and thus you couldn't use libraries
that were linked to the system libc with gcc if it could only use gcc.
If I recall correctly the gcc shipped in skunkware generates binaries
linked to the system libc. It should be trivial to find out by compiling
a "hello world" program and using /bin/ldd to show what it's linked to.
It might be possible to build PostgreSQL against glibc instead, but it
seems like way more work than would be worthwhile when you can just run
Pg on a modern machine and talk to it over the network.
--
Craig Ringer