Re: Segmentation fault while COPY in 7.3

From: "Nicolai Tufar" <ntufar(at)apb(dot)com(dot)tr>
To: "Joe Conway" <mail(at)joeconway(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-general(at)postgresql(dot)org>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Segmentation fault while COPY in 7.3
Date: 2002-12-01 07:32:47
Message-ID: 008301c2990b$d85cb700$8016a8c0@apb.com.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-general pgsql-hackers

----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>

> Ohhh ...
>
> Nicolai, are you running with a client encoding different from server
> encoding?

Got it!
Gentlemen, thank you very much for assistance. The body of evidence was
slowly
growing, then, finaly Tom Lan's message have enlightened me.

It all started with initdb's warning that it can not set client's connection
to 'LATIN5'.
Okay, I said, maybe some system files are not installed. Then I tried to
create a database
with ENCODING='LATIN5'. I did not pay much attention either since my
template1 and
template0 are in LATIN5. Then on Tom's suggestion I tried to change client
encoding:

aaa=# \encoding
LATIN5
aaa=# \encoding SQL_ASCII
SQL_ASCII: invalid encoding name or conversion procedure not found
aaa=# \encoding LATIN5
LATIN5: invalid encoding name or conversion procedure not found
aaa=# \encoding SQL_ASCii
aaa=# \encoding
SQL_ASCII
aaa=# \encoding LATiN5
aaa=# \encoding
LATIN5
aaa=#

So it all falls back to Turkish "I" problem I mentioned earlier. To
perform COPY successfully I had to set client locale to 'LATiN5'
(note quotes and lower-case "i"). Any other combinations result
in segmentation fault.

Now, would it be right to change locale name handling to use ASCII-only
lower and upper-case conversions?

Many thanks to Tom Lane and Joe Conway.

I've got to get some sleep :-)
Regards,
Nic.

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Daniel Morgan 2002-12-01 10:15:03 PostgreSQL 7.3 Win32 Binaries
Previous Message Tom Lane 2002-12-01 06:50:38 Re: Segmentation fault while COPY in 7.3

Browse pgsql-general by date

  From Date Subject
Next Message Ian W Roberts 2002-12-01 08:26:52 select ... where ... in - headache
Previous Message Tom Lane 2002-12-01 06:50:38 Re: Segmentation fault while COPY in 7.3

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2002-12-01 10:33:19 Re: 7.4 Wishlist
Previous Message Joe Conway 2002-12-01 06:50:39 Re: ExecMakeTableFunctionResult vs. pre-evaluated functions