Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y72ew-0004wW-9W for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Jan 2015 13:52:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y72eu-000649-NV for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Jan 2015 13:52:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y72et-000642-Lu for pgsql-hackers@postgresql.org; Fri, 02 Jan 2015 13:52:55 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Y72en-0006Ak-CU for pgsql-hackers@postgresql.org; Fri, 02 Jan 2015 13:52:54 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id E49ED2865E; Fri, 2 Jan 2015 05:52:40 -0800 (PST) Received: from EX13-CAS-004.vmware.com (EX13-CAS-004.vmware.com [10.113.191.54]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id DDDE1190D7; Fri, 2 Jan 2015 05:52:40 -0800 (PST) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-012.vmware.com (10.113.191.32) with Microsoft SMTP Server (TLS) id 15.0.913.22; Fri, 2 Jan 2015 05:52:40 -0800 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Fri, 2 Jan 2015 05:52:39 -0800 Message-ID: <54A6A293.2090508@vmware.com> Date: Fri, 2 Jan 2015 15:52:19 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: Teodor Sigaev , Pgsql Hackers Subject: Re: compress method for spgist - 2 References: <54907069.1030506@sigaev.ru> <54993A76.7050308@vmware.com> <549967DE.1030103@sigaev.ru> In-Reply-To: <549967DE.1030103@sigaev.ru> Content-Type: text/plain; charset="koi8-r"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 12/23/2014 03:02 PM, Teodor Sigaev wrote: >> >I think we'll need a separate SpGistTypeDesc for the input type. Or perhaps a >> >separate SpGistTypeDesc for the reconstructed value and an optional decompress >> >method to turn the reconstructedValue back into an actual reconstructed input >> >datum. Or something like that. > I suppose that compress and reconstruct are mutual exclusive options. I would rather not assume that. You might well want to store something in the leaf nodes that's different from the original Datum, but nevertheless contains enough information to reconstruct the original Datum. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers