Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHwwD-0004Gc-9s for pgsql-general@arkaria.postgresql.org; Thu, 23 Nov 2017 19:13:29 +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 1eHwwC-0007iP-T6 for pgsql-general@arkaria.postgresql.org; Thu, 23 Nov 2017 19:13:28 +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 1eHwwC-0007iE-Ic for pgsql-general@lists.postgresql.org; Thu, 23 Nov 2017 19:13:28 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eHwwA-0002kH-5E for pgsql-general@postgresql.org; Thu, 23 Nov 2017 19:13:27 +0000 Received: by mail-wm0-x233.google.com with SMTP id x63so18459816wmf.4 for ; Thu, 23 Nov 2017 11:13:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=5ES/9q+OYfzQniYapxyfNkVQV+ZBfG3BZpTdis3DT2k=; b=KkXYouRkkI6jJdrEmEmi24St5VArr4UJxlig865j3uxK1geV/bFrIY3H+PS7Ww8GA4 lgZoE8v23zOQndQoXwN58duiQbsDHCZ8GaV94Pa61RtOvfYAssKm0BrWKyIvIZjdorNC dx88oUHJpDNwHyLVfjxGleo1W+0FILbpLHTHSjQpa+ssJwYRqEQ94/4L3HGIzHQU8EV/ p/YfOI5MYG0uL4uMHg9Zj6Neds5JBkLKSxxwpTv3Tpt04FApXGZ4bPafro6uKqeuEA3X +9xBHR+CJ4uCYss3nE/aL9fW/Nz+9o4GbJuJXgJ43ImRMDHnxNQGUEUWvjCwOtGLxsdE CCmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=5ES/9q+OYfzQniYapxyfNkVQV+ZBfG3BZpTdis3DT2k=; b=IdXPKQ1oezgds/Pr8iwc5vxs4k7knfKaL3+NjNqD+LfpgnAiteQr/cuUt7bZCO7INk 2sXRF/rLQe2IlRT8ccVZTt4xzM1C/gfxpck9mXd6Fde7BWpdJeWOsYjL7f2BwFCp186t 7DQPZdSoSx45KiQCdW+NJPNeLURhhjGc+q2BC5L+V/zP33ZS28DpuJfFqtWgISGq065a ke5+AQdHobRHIKmw9dsk5ZbwDM/6r82aRa9DJHAnyWHdspiVqROd3qEtMQtU4WsZcPU3 5K9sMhiUetyemWQrBhDLvBW+8PycRrLC1bdiXh5Vw1CqbSfv+4D9yiMm5HXhtwKxb2gC V+jg== X-Gm-Message-State: AJaThX4P4kkPxGAFJxzmRN3yNVjt5lqV1KAATqaUySsDm/DNfImqSTr/ eiTx49jnSeqYD26BjZMLz7rYw1+7ios= X-Google-Smtp-Source: AGs4zMYFpOAJk9eU5ieXz06cr3R9jndzumG9r5+WMYBHukG3Mvl/VD2CgR2nvy5MHhcUT1yp6OvDwA== X-Received: by 10.28.167.22 with SMTP id q22mr8478131wme.52.1511464404182; Thu, 23 Nov 2017 11:13:24 -0800 (PST) Received: from [192.168.0.100] (nat3-minsk-pool-46-53-183-239.telecom.by. [46.53.183.239]) by smtp.gmail.com with ESMTPSA id u5sm1033668wmf.47.2017.11.23.11.13.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 11:13:23 -0800 (PST) Subject: Re: Implementation of gtrgm_out for gevel To: Tom Lane Cc: "pgsql-general@postgresql.org" References: <10364b81-1625-9511-9b33-e76b7048be50@gmail.com> <18411.1511463494@sss.pgh.pa.us> From: Dmitry Lazurkin Message-ID: <0abdde54-0003-2447-824a-9fd0fc9bc4c3@gmail.com> Date: Thu, 23 Nov 2017 22:12:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <18411.1511463494@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 *. > > regards, tom lane Hmm. I will try to debug gist_print.