Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsD4J-0002PD-Ac for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Jun 2013 14:21:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UsD4I-0001rk-Mc for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Jun 2013 14:21: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 1UsD4F-0001mL-16 for pgsql-hackers@postgresql.org; Thu, 27 Jun 2013 14:20:59 +0000 Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsD4C-0008UK-EK for pgsql-hackers@postgresql.org; Thu, 27 Jun 2013 14:20:58 +0000 Received: by mail-ee0-f42.google.com with SMTP id c4so437155eek.29 for ; Thu, 27 Jun 2013 07:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=TxQtydrbn3D22uE8hlHpkHW0NGIqJwOlQW7qWbo3dXM=; b=lC7JVXiJTuLX1pu87FiAZqFSkH8ftuJHmzYrtg7Mmfc4tEtRJT+dCHN3v9LUnz897N rWJhNpU22/lliVN6GCeUTU87gplQfEpccJ6X8IZE86nIz9KCFsE+IWOcpQhSH3z2HT3T ZQKpA9vRx7LrnZkgfzUzOSMlodoKWlYzl/8GxPP3Zf3wsTUYyN8ZqiNMb2qTH0VtHpjN /Wy7cDQbKWx3TNdknVABTYY/hlsT2NW7qd8PNuflhUt0HROh9qRYYHrQFOZHJxlx2jYy Utgwfigu746MEJkTTu294e9RqNguUGJKm445irWS1YmRPuAo9obLzXHGZrucGzOlqxpk 0jbw== X-Received: by 10.14.122.201 with SMTP id t49mr9425776eeh.26.1372342855919; Thu, 27 Jun 2013 07:20:55 -0700 (PDT) Received: from [192.168.0.164] (snat.spoje.net. [77.87.240.6]) by mx.google.com with ESMTPSA id n5sm4130897eed.9.2013.06.27.07.20.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 07:20:54 -0700 (PDT) Message-ID: <51CC4A44.2080905@gmail.com> Date: Thu, 27 Jun 2013 16:20:52 +0200 From: Antonin Houska User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: pgsql-hackers@postgresql.org Subject: Re: GIN improvements part 1: additional information References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) 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 06/25/2013 12:03 AM, Alexander Korotkov wrote: > > > New revision of patch is attached. Now it includes some docs. > > Hi, I was curious about the new layout of the data page, so I spent a while looking into the code. It's interesting, but I suspect 2 things are not o.k.: * gindatapage.c:dataIsEnoughSpace() - 'i++' in the for loop should probably be 'j++', otherwise it loops forever * gin_private.h:ginDataPageLeafRead() - fetch_att() is used to retrieve the additional info, but per the definition and comments in tupmacs.h it expects aligned pointer. * gindatapage.c:ginCheckPlaceToDataPageLeaf() - comment "if leaf data page" should probably be "on a leaf data page" or so. Regards, Antonin Houska (Tony) -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers