Re: Implementation of gtrgm_out for gevel

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitry Lazurkin <dilaz03(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Implementation of gtrgm_out for gevel
Date: 2017-11-23 18:58:14
Message-ID: 18411.1511463494@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dmitry Lazurkin <dilaz03(at)gmail(dot)com> 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 = (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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Lazurkin 2017-11-23 19:12:40 Re: Implementation of gtrgm_out for gevel
Previous Message Dmitry Lazurkin 2017-11-23 17:52:51 Implementation of gtrgm_out for gevel