Re: [GENERAL] C function to create tsquery not working

2010-02-26 Thread Ivan Sergio Borgonovo
On Thu, 25 Feb 2010 11:41:58 +0100 Pavel Stehule pavel.steh...@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

Re: [GENERAL] C function to create tsquery not working

2010-02-25 Thread Ivan Sergio Borgonovo
On Thu, 11 Feb 2010 20:11:54 +0100 Ivan Sergio Borgonovo m...@webthatworks.it wrote: I'm still having trouble making this work: http://pgsql.privatepaste.com/14a6d3075e I tried to play with item-operator.left to see if reshuffling the expression could make any difference. item-operator.left

Re: [GENERAL] C function to create tsquery not working

2010-02-25 Thread Pavel Stehule
2010/2/25 Ivan Sergio Borgonovo m...@webthatworks.it: On Thu, 11 Feb 2010 20:11:54 +0100 Ivan Sergio Borgonovo m...@webthatworks.it wrote: I'm still having trouble making this work: http://pgsql.privatepaste.com/14a6d3075e I tried to play with item-operator.left to see if reshuffling the

[GENERAL] C function to create tsquery not working

2010-02-11 Thread Ivan Sergio Borgonovo
I'm still having trouble making this work: http://pgsql.privatepaste.com/14a6d3075e CREATE OR REPLACE FUNCTION tsvector_to_tsquery(IN tsv tsvector, op IN char(1), weights IN varchar(4), maxpos IN smallint ) RETURNS tsquery AS 'MODULE_PATHNAME' LANGUAGE C STRICT;