Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B9043133729E for ; Tue, 9 Nov 2010 07:36:47 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 74179-04 for ; Tue, 9 Nov 2010 11:36:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cronos.madness.at (madness.at [217.196.146.217]) by mail.postgresql.org (Postfix) with ESMTP id 559DB1337BA6 for ; Tue, 9 Nov 2010 07:36:40 -0400 (AST) Received: from congw.dc1.conova.com ([217.196.145.250] helo=[192.168.1.61]) by cronos.madness.at with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PFmV9-0000pI-9U; Tue, 09 Nov 2010 12:36:37 +0100 Message-ID: <4CD93240.30403@kaltenbrunner.cc> Date: Tue, 09 Nov 2010 12:36:32 +0100 From: Stefan Kaltenbrunner User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329) MIME-Version: 1.0 To: Robert Haas CC: Arturas Mazeika , Dave Page , pgsql-bugs@postgresql.org Subject: Re: BUG #5735: pg_upgrade thinks that it did not start the old server References: <201010301429.o9UETDop059721@wwwmaster.postgresql.org> <4CCCC6A5.5000601@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201011/47 X-Sequence-Number: 28627 Robert Haas wrote: > On Sat, Oct 30, 2010 at 9:30 PM, Arturas Mazeika wrote: >> Thanks for the info, this explains a lot. >> >> Yes, I am upgrading from the 32bit version to the 64bit one. >> >> We have pretty large databases (some over 1 trillion of rows, and some >> containing large documents in blobs.) Giving a bit more memory than 4GB >> limit to Postgres was what we were long longing for. Postgres was able to >> handle large datasets (I suppose it uses something like long long (64bit) >> data type in C++) and I hoped naively that Postgres would be able to migrate >> from one version to the other without too much trouble. >> >> I tried to pg_dump one of the DBs with large documents. I failed with out of >> memory error. I suppose it is rather hard to migrate in my case :-( Any >> suggestions? > > Yikes, that's not good. How many tables do you have in your database? > How many large objects? Any chance you can coax a stack trace out of > pg_dump? well the usually problem is that it is fairly easy to get large (several hundred megabytes) large bytea objects into the database but upon retrieval we tend to take up to 3x the size of the object as actual memory consumption which causes us to hit all kind of limits(especially on 32bit boxes). We really need to look into reducing that or putting a more prominent "don't use bytea for anything larger than say 50MByte) Stefan