On 23.11.2017 21:58, Tom Lane wrote: > Dmitry Lazurkin <dilaz03@xxxxxxxxx> 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 *. > > regards, tom lane Hmm. I will try to debug gist_print.