Re: Strange behavior on to_tsquery()
От | Rodrigo Hjort |
---|---|
Тема | Re: Strange behavior on to_tsquery() |
Дата | |
Msg-id | CAAjEfRy55gNd66eAD8FZ6_hHDwGKsJwshSnQqMmc3hrDdaLAiA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Strange behavior on to_tsquery() (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
<div class="gmail_quote">2011/11/3 Tom Lane <br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">I wrote:<br /> > (Just offhand, it ratherlooks like dict_int and dict_xsyn are both<br /> > assuming that palloc will give back zeroed space, which is bogus...)<br/><br /></div>Yeah, this is definitely broken. Patches committed; thanks for the<br /> report.<br /><a href="http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e3e3087d8717c26cd1c4581ba29274ac214eb816" target="_blank">http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e3e3087d8717c26cd1c4581ba29274ac214eb816</a><br /><br/> regards, tom lane<br /></blockquote></div><br />I modified my code by calling <i>palloc0()</i>instead and that issue no longer appears. :D<br /><br />Thanks, Tom Lane!<br /><br />-- <br />Rodrigo Hjort<br/><a href="http://www.hjort.co" target="_blank">www.hjort.co</a><br /><br />
В списке pgsql-hackers по дате отправления: