| From: | Rodrigo Hjort <rodrigo(dot)hjort(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Strange behavior on to_tsquery() |
| Date: | 2011-11-04 19:35:47 |
| Message-ID: | CAAjEfRy55gNd66eAD8FZ6_hHDwGKsJwshSnQqMmc3hrDdaLAiA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
2011/11/3 Tom Lane
> I wrote:
> > (Just offhand, it rather looks like dict_int and dict_xsyn are both
> > assuming that palloc will give back zeroed space, which is bogus...)
>
> Yeah, this is definitely broken. Patches committed; thanks for the
> report.
>
> http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=e3e3087d8717c26cd1c4581ba29274ac214eb816
>
> regards, tom lane
>
I modified my code by calling *palloc0()* instead and that issue no longer
appears. :D
Thanks, Tom Lane!
--
Rodrigo Hjort
www.hjort.co
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2011-11-04 19:39:19 | Re: heap vacuum & cleanup locks |
| Previous Message | Robert Haas | 2011-11-04 19:28:56 | Re: IDLE in transaction introspection |