Re: Implementation of gtrgm_out for gevel

2017-11-24 Thread Dmitry Lazurkin
On 11/23/2017 09:58 PM, Tom Lane wrote: > Dmitry Lazurkin writes: >> Datum >> gtrgm_out(PG_FUNCTION_ARGS) >> { >>     GISTENTRY  *entry = (GISTENTRY *) PG_GETARG_POINTER(0); /* I think entry >> is pointer to bad memory */ > The argument is TRGM *, I think ... certainly not GISTENTRY *. > >

Re: Implementation of gtrgm_out for gevel

2017-11-23 Thread Dmitry Lazurkin
On 23.11.2017 21:58, Tom Lane wrote: > Dmitry Lazurkin writes: >> Datum >> gtrgm_out(PG_FUNCTION_ARGS) >> { >>     GISTENTRY  *entry = (GISTENTRY *) PG_GETARG_POINTER(0); /* I think entry >> is pointer to bad memory */ > The argument is TRGM *, I think ... certainly not GISTENTRY *. > >

Re: Implementation of gtrgm_out for gevel

2017-11-23 Thread Tom Lane
Dmitry Lazurkin writes: > I want use gevel (http://www.sai.msu.su/~megera/wiki/Gevel) for investigation > of pg_trgm gist. But for gist_print i need implement gtrgm_out for pg_trgm > gist node. And i have a problem here. > Datum > gtrgm_out(PG_FUNCTION_ARGS) > { >     GISTENTRY  *entry = (GISTE

Implementation of gtrgm_out for gevel

2017-11-23 Thread Dmitry Lazurkin
Hello. I want use gevel (http://www.sai.msu.su/~megera/wiki/Gevel) for investigation of pg_trgm gist. But for gist_print i need implement gtrgm_out for pg_trgm gist node. And i have a problem here. - My version: PostgreSQL 9.6.6 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubun