Re: client libpq multibyte support - Mailing list pgsql-hackers

From Tom Lane
Subject Re: client libpq multibyte support
Date
Msg-id 4504.957498004@sss.pgh.pa.us
Whole thread Raw
In response to client libpq multibyte support  (SAKAIDA Masaaki <sakaida@psn.co.jp>)
Responses Re: client libpq multibyte support  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
SAKAIDA Masaaki <sakaida@psn.co.jp> writes:
>     A client application using libpq made by non-MULTIBYTE 
> can not talk to server made by MULTIBYTE.

>  admin=# select * from SJIS_KANJI ;
>  \: extra argument ';' ignored
>  \: extra argument ';' ignored
>  Invalid command \. Try \? for help.        

Ugh :-(.  We have not seen this reported before --- do you know exactly
where it's coming from?  (I suspect it may be a psql issue not a libpq
issue, but hard to say without more info.)

>   I hope that a client 7.0-libpq and an application always be 
> made by "configure --enable-multibyte" even if MULTIBYTE isn't 
> necessary for backend. If so, the above problem will be solved.

I do not think that will go over well with people who don't need
multibyte support, since the MULTIBYTE code is a good deal larger
and slower.  Also, AFAIK we didn't have any such problem in 6.5, so
perhaps this is just a small bug not requiring such a sledgehammer
solution.  We need to look more closely.
        regards, tom lane


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: pg_group_name_index corrupt?
Next
From: Bruce Momjian
Date:
Subject: Re: Request for 7.0 JDBC status