Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3EAFF64FD27 for ; Tue, 30 Dec 2008 09:55:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 08891-02 for ; Tue, 30 Dec 2008 09:55:55 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.postgresql.org (Postfix) with SMTP id E60C464FD2F for ; Tue, 30 Dec 2008 09:55:54 -0400 (AST) Received: (qmail invoked by alias); 30 Dec 2008 13:55:52 -0000 Received: from gmp-ea-fw-1.sun.com (EHLO dhcp-eesp05-101-232.Finland.Sun.COM) [192.18.1.36] by mail.gmx.net (mp003) with SMTP; 30 Dec 2008 14:55:52 +0100 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX1831D9CZxk3dK4MWCixVYJtXq8oeToxi+EKR+0rPN Hs3nbnVWM2ZDDo Message-ID: <495A285F.5080000@gmx.net> Date: Tue, 30 Dec 2008 15:55:43 +0200 From: Peter Eisentraut User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: "Bhujbal, Santosh" CC: pgsql-admin@postgresql.org Subject: Re: postgres block_size problem References: <3BD53621E5C8E54594130AF5459379EE08D80D41@exchindia4.starentnetworks.com> In-Reply-To: <3BD53621E5C8E54594130AF5459379EE08D80D41@exchindia4.starentnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/201 X-Sequence-Number: 31034 Bhujbal, Santosh wrote: > Hi All, > > We were getting the following error on executing a COPY command on > postgres8.2.0. > > SQL execution failed, Internal error. SQL Statement: (COPY command failed with error: ERROR: row is too big: size 8200, maximum size 8136) > > So, in order to fix the error we tried increasing the block size to 16k > and recompiled the postgres library. The problem at hand was resolved > with the new postgres library and we were now able to populate data for > the mentioned query successfully. However, this experiment fails when we > tried to run the new postgres on data directory generated with 8k block > size which is likely to occur during an upgrade with postgres log > showing the following error: > > > > 2008-12-30 14:57:33 IST DETAIL: The database cluster was initialized > with BLCKSZ 8192, but the server was compiled with BLCKSZ 16384. > > 2008-12-30 14:57:33 IST HINT: It looks like you need to recompile or > initdb. > > > > What could be the possible solution to this? If you want to migrate data from an 8k block size data directory to a 16k block size data directory, you need to do a dump and restore, just like on a major version upgrade.