On 11/23/2017 09:58 PM, Tom Lane wrote:
> Dmitry Lazurkin <dilaz03(at)gmail(dot)com> 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
You are right. Thank you.