Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id AEE2C1337B49 for ; Tue, 9 Nov 2010 05:46:00 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 67932-06 for ; Tue, 9 Nov 2010 09:45:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id 9E8A91337B43 for ; Tue, 9 Nov 2010 05:45:52 -0400 (AST) Received: by wwb13 with SMTP id 13so556541wwb.19 for ; Tue, 09 Nov 2010 01:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=aRoHqdXTj9OqPi/GjH4P1hZNlccKjxieyxso0878lj0=; b=Qn11AWv4gLOGs0tqidFh5YbyrTazATdfhAiUTJcFAb06mUAtxxTVPczcCVxLYf/V6s /LQK+LzUMFDMRYdU8TLyMFXPFEKzZgtzX4p2tlbheOS+MtJy41A7s4sLvmXrpM9z3MjU mcCVar/P1vq6CWJ+onfTPMgI7v2MNomX5XFo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=F17TliwXApcyRrDGdts1qfd3AtWlQZm6dVPmaELHR5RD4Xjeo8RVNM3vFBTYkE1Jb/ SIbOuDiNNdzfRe6HOlBO0CrC2pEFx/4oa6AwBvxJBtT4z4UO46IA8AO8CFVCmtZjl4y4 PLSE91dpOeoGP28tNqgmrjplKVAOalMNcDTX8= Received: by 10.227.145.139 with SMTP id d11mr6529935wbv.11.1289295950812; Tue, 09 Nov 2010 01:45:50 -0800 (PST) Received: from [139.19.50.97] (wks-15-010.ag5.mpi-sb.mpg.de [139.19.50.97]) by mx.google.com with ESMTPS id c16sm705559wef.17.2010.11.09.01.45.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Nov 2010 01:45:50 -0800 (PST) Message-ID: <4CD9184D.3040300@gmail.com> Date: Tue, 09 Nov 2010 10:45:49 +0100 From: Arturas Mazeika User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100622 Icedove/3.0.5 MIME-Version: 1.0 To: Robert Haas CC: 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, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201011/48 X-Sequence-Number: 28628 Hi Robert, On 11/08/2010 10:23 PM, 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? > We are storing the UKGOV Web archive [1] in a Postgres DB. There are two large tables and a dozen of small tables. The large tables are pages and links. Pages describe information about the Web page, including its compressed content (this is usually tens KBs, sometimes MBs). Links describe link structure between the Web pages. The pages table occupies some 176GB (50M rows), while links occupy 32GB (500M rows). All databases that need to be migrated occupy 1.07TB. BTW, in Postgres, the shared buffers is set to 128M, and the working mem is set to 1GB. We've got 16GB memory in total (the machine is rather an older one). I'll try to dump the DB again, and get the stack trace. This may take quite a while. [1] http://www.europarchive.org/ukgov.php