Re: v7.4.1 text_position() patch - Mailing list pgsql-patches

From Tatsuo Ishii
Subject Re: v7.4.1 text_position() patch
Date
Msg-id 20040131.112522.35658350.t-ishii@sra.co.jp
Whole thread Raw
In response to Re: v7.4.1 text_position() patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] v7.4.1 text_position() patch  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [HACKERS] v7.4.1 text_position() patch  (Joe Conway <mail@joeconway.com>)
List pgsql-patches
> "Korea PostgreSQL Users' Group" <pgsql-kr@postgresql.or.kr> writes:
> >> Hm.  I don't think it can actually fail, because the wchar strings are
> >> zero-terminated.
>
> > [ yes it can ]
>
> You're right.  I was confused at first because I couldn't reproduce the
> problem, but then I realized it's because I'm running with
> CLOBBER_FREED_MEMORY enabled, so the junk beyond the end of the string
> won't match the other string.
>
> Will commit the patch.  Thanks.
>
>             regards, tom lane

It's surprising that nobody noticed the bug until now. It seems it has
been there since 7.3 days. I would like to make a back patch for
7.3-stable if nobody objects.

BTW, I'm interested in Korea PostgreSQL Users' Group since I myself am
a bord member of Japan PostgreSQL Users' Group. Please let me know if
both users group could make some collaboration, such as having a
seminar in Korea or in Japan.
--
Tatsuo Ishii

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: v7.4.1 text_position() patch
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] v7.4.1 text_position() patch