Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHwhY-0003Ki-2z for pgsql-general@arkaria.postgresql.org; Thu, 23 Nov 2017 18:58:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHwhX-0001O5-Bc for pgsql-general@arkaria.postgresql.org; Thu, 23 Nov 2017 18:58:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eHwhX-0001Nv-1B for pgsql-general@lists.postgresql.org; Thu, 23 Nov 2017 18:58:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eHwhT-0002Rc-U5 for pgsql-general@postgresql.org; Thu, 23 Nov 2017 18:58:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vANIwEiG018412; Thu, 23 Nov 2017 13:58:14 -0500 From: Tom Lane To: Dmitry Lazurkin cc: "pgsql-general@postgresql.org" Subject: Re: Implementation of gtrgm_out for gevel In-reply-to: <10364b81-1625-9511-9b33-e76b7048be50@gmail.com> References: <10364b81-1625-9511-9b33-e76b7048be50@gmail.com> Comments: In-reply-to Dmitry Lazurkin message dated "Thu, 23 Nov 2017 20:52:51 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <18410.1511463494.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 23 Nov 2017 13:58:14 -0500 Message-ID: <18411.1511463494@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Dmitry Lazurkin writes: > I want use gevel (http://www.sai.msu.su/~megera/wiki/Gevel) for investig= ation of pg_trgm gist. But for gist_print i need implement gtrgm_out for p= g_trgm gist node. And i have a problem here. > Datum > gtrgm_out(PG_FUNCTION_ARGS) > { > =C2=A0=C2=A0=C2=A0 GISTENTRY=C2=A0 *entry =3D (GISTENTRY *) PG_GETARG_PO= INTER(0); /* I think entry is pointer to bad memory */ The argument is TRGM *, I think ... certainly not GISTENTRY *. regards, tom lane