Re: [BUGS] BUG #2120: Crash when doing UTF8<->ISO_8859_8 encoding - Mailing list pgsql-patches

From Tom Lane
Subject Re: [BUGS] BUG #2120: Crash when doing UTF8<->ISO_8859_8 encoding
Date
Msg-id 15856.1135312706@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] BUG #2120: Crash when doing UTF8<->ISO_8859_8 encoding  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Responses Re: [BUGS] BUG #2120: Crash when doing UTF8<->ISO_8859_8
List pgsql-patches
Tatsuo Ishii <ishii@sraoss.co.jp> writes:
> I think the current implementaion in utf8_and_iso8859.c is fast but
> too fragile against rearranging of encoding id. I modify those functions
> in utf8_and_iso8859.c to do a linear search with encoding id.

That's not unreasonable, but I was wondering whether we could add some
Assert() tests that would catch problems without imposing any extra cost
in normal non-Assert builds.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Disparity in search_path SHOW and SET
Next
From: Volkan YAZICI
Date:
Subject: Re: tuple count and v3 functions in psql for COPY