Re: BUG #3866: Segfault during table update when using convert_from() - Mailing list pgsql-bugs

From Andrew Gilligan
Subject Re: BUG #3866: Segfault during table update when using convert_from()
Date
Msg-id CC705AD1-17A3-4013-A68E-E3EED572DDA6@tcpd.net
Whole thread Raw
In response to Re: BUG #3866: Segfault during table update when using convert_from()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On 9 Jan 2008, at 23:45, Tom Lane wrote:

> "Andrew Gilligan" <andy@tcpd.net> writes:
>> It seems there exists a bug in the way character set conversion
>> is handled in some circumstances.
>
> Seems to be the bogus pfree() in pg_convert_from() that's causing
> the problem :-(.  Take that out and you should be OK.

That's exactly it, thanks...  Everything seems fine now.

The fix is trivial, so not sure if a patch is even warranted, but
I've attached the changes just in case.

Best regards,
-Andy




Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #3866: Segfault during table update when using convert_from()
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #3860: xpath crashes backend when is querying xmlagg result