Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3p2x-0000zd-Of for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Dec 2014 16:44:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y3p2x-0002Ct-5x for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Dec 2014 16:44:27 +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 1Y3p2w-0002Cm-89 for pgsql-bugs@postgresql.org; Wed, 24 Dec 2014 16:44:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y3p2t-00032D-1A for pgsql-bugs@postgresql.org; Wed, 24 Dec 2014 16:44:25 +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 sBOGiJtu008173; Wed, 24 Dec 2014 11:44:19 -0500 From: Tom Lane To: Heikki Linnakangas cc: pgsql-bugs@postgresql.org, robert.thaler@cellent.at Subject: Re: BUG #12292: index row size 1480 exceeds maximum 1352 for index In-reply-to: <20141220192730.11502.42806@wrigleys.postgresql.org> References: <20141220192730.11502.42806@wrigleys.postgresql.org> Comments: In-reply-to robert.thaler@cellent.at message dated "Sat, 20 Dec 2014 19:27:30 +0000" Date: Wed, 24 Dec 2014 11:44:19 -0500 Message-ID: <8172.1419439459@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org robert.thaler@cellent.at writes: > I tried to upgrade from postgres 9.3.5 and imported a database export > created by pg_dump. the import shows the following error: > ERROR: index row size 1480 exceeds > maximum 1352 for index "idx_sm_post_content" I've looked into this (thanks to Robert for the test data), and the short answer is that commit 36a35c55 approximately halved GinMaxItemSize: #define GinMaxItemSize \ - MAXALIGN_DOWN(((BLCKSZ - SizeOfPageHeaderData - \ - MAXALIGN(sizeof(GinPageOpaqueData))) / 3 - sizeof(ItemIdData))) + Min(INDEX_SIZE_MASK, \ + MAXALIGN_DOWN(((BLCKSZ - SizeOfPageHeaderData - \ + MAXALIGN(sizeof(GinPageOpaqueData))) / 6 - sizeof(ItemIdData)))) What was the rationale for deciding that GIN has to be able to fit six tuples per page??? This is going to create serious dump/reload hazards for a lot of users. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs