Unix Technical Forum

BUG #3716: utf8 crash with replace

This is a discussion on BUG #3716: utf8 crash with replace within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3716 Logged by: Andreas Pflug Email address: pgadmin@pse-consulting.de PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:11 PM
Andreas Pflug
 
Posts: n/a
Default BUG #3716: utf8 crash with replace


The following bug has been logged online:

Bug reference: 3716
Logged by: Andreas Pflug
Email address: pgadmin@pse-consulting.de
PostgreSQL version: 8.2.4
Operating system: Linux,Windows
Description: utf8 crash with replace
Details:

If replace is used with UTF8 client_encoding, searching for a malformed
string, the backend will crash.

SELECT replace('Ärger', chr(195), 'Ae')

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:11 PM
Tom Lane
 
Posts: n/a
Default Re: BUG #3716: utf8 crash with replace

"Andreas Pflug" <pgadmin@pse-consulting.de> writes:
> If replace is used with UTF8 client_encoding, searching for a malformed
> string, the backend will crash.


> SELECT replace('Ärger', chr(195), 'Ae')


I see no crash here. Maybe it's been fixed since 8.2.4? Please try
8.2.5. If you still get a crash, could you send a stack trace?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:11 PM
Andreas Pflug
 
Posts: n/a
Default Re: BUG #3716: utf8 crash with replace

Tom Lane wrote:
> "Andreas Pflug" <pgadmin@pse-consulting.de> writes:
>
>> If replace is used with UTF8 client_encoding, searching for a malformed
>> string, the backend will crash.
>>

>
>
>> SELECT replace('Ärger', chr(195), 'Ae')
>>

>
> I see no crash here. Maybe it's been fixed since 8.2.4? Please try
> 8.2.5. If you still get a crash, could you send a stack trace?
>

Ok, apparently fixed in 8.2.5.

Regards,
Andreas


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:59 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com