Re: C function to create tsquery not working - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject Re: C function to create tsquery not working
Date
Msg-id 20100226152324.5aba2e58@dawn.webthatworks.it
Whole thread Raw
In response to Re: C function to create tsquery not working  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-general
On Thu, 25 Feb 2010 11:41:58 +0100
Pavel Stehule <pavel.stehule@gmail.com> wrote:

> use --enable-assert configure flag?
>
> you can use memory in bad context. So you are alloc good memory,
> but when you leave function, then complete memory context is
> freeed and you can have a problem.

Meanwhile I experienced some new strange behaviour.
I created a table in the same DB containing some tsvector to test the
function on a better known, easier to control set of data.
The tsvectors contained aren't that different from the one contained
in the "real" table, they are just fewer.

I finally downloaded all pg source, compiled it, compiled my
extension inside contrib.
Restored the "real" DB. Tested on the "real" table... and no problem
at all.

Nothing really helpful since the 2 setup aren't really identical,
one was hand compiled on sid, the other is stock debian lenny
install.

I'll try to compile the debian lenny version in a new virtual
machine.

Meanwhile if someone could give a glimpse to the source it would be
really appreciated.

http://www.webthatworks.it/d1/files/ts_utilities.tar.bz2

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: Re: ERROR: value out of range: underflow
Next
From: Raymond O'Donnell
Date:
Subject: Re: ERROR: value out of range: underflow