Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W61br-0007vK-0H for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Jan 2014 17:29:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W61bq-0007Oh-FQ for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Jan 2014 17:29:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W61bn-0007MA-KT for pgsql-hackers@postgresql.org; Wed, 22 Jan 2014 17:28:59 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W61bj-0004Y6-Vb for pgsql-hackers@postgresql.org; Wed, 22 Jan 2014 17:28:59 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 3B847286F1; Wed, 22 Jan 2014 09:28:51 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 2028F181F1; Wed, 22 Jan 2014 09:28:51 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id B295912000A; Wed, 22 Jan 2014 09:30:24 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Wed, 22 Jan 2014 09:30:23 -0800 (PST) Message-ID: <52DFFFD0.6020708@vmware.com> Date: Wed, 22 Jan 2014 19:28:48 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Alexander Korotkov CC: Tomas Vondra , pgsql-hackers Subject: Re: GIN improvements part 1: additional information References: <52AEE445.1060206@vmware.com> <52AF837C.3040201@vmware.com> <52B2F5B0.1030809@vmware.com> <52B49C34.8060300@vmware.com> <52D0A947.6050706@fuzzy.cz> <52D478F2.6070005@fuzzy.cz> <52D5E1BC.3000208@fuzzy.cz> <52D9789E.3030202@vmware.com> <52DDD51E.2080408@fuzzy.cz> <52DE3F55.80103@vmware.com> <52DEE4BF.6010203@vmware.com> <52DF819E.4070507@vmware.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.5 (-------) 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 01/22/2014 02:17 PM, Alexander Korotkov wrote: > We already spent a lot of time with compression. Now we need to figure out > the result we want see. I spent quite long time debugging varbyte encoding > without segments. Finally, it passed very many tests without any problems. > Now, it is just piece of junk. I'm afraid that we will have to reimplement > everything from scratch another two or three times because code doesn't > look perfect. For sure, it's incompatible with getting something into 9.4. That's a bit harsh :-). But yes, I understand what you're saying. It's quite common for large patches like this to be rewritten several times before being committed; you just don't know what works best until you've tried many designs. > Remember we have also subsequent fast-scan which is very needed for hstore > and other application. > I propose to do final decisions now and concentrate forces on making > committable patch with these decisions. And don't change these decisions > even if somebody have idea how to improve code readability in 100 times and > potential extendability in 1000 times. > I propose following decisions: > 1) Leave uncompressed area, allow duplicates in it > 2) Don't introduce Items on page. Well, I got the insertions to work now without the uncompressed area, so in the spirit of Just Getting This Damn Patch Committed, I'm going to go ahead with that. We can add the uncompressed area later if performance testing shows it to be necessary. And I agree about the Items on page idea - we can come back to that too still in 9.4 timeframe if necessary, but probably not. So, committed. It's the same design as in the most recent patch I posted, but with a bunch of bugs fixed, and cleaned up all over. I'm going to move to the fast scan patch now, but please do test and review the committed version to see if I missed something. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers