pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arturas Mazeika <mazeika@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Dave Page <dpage@pgadmin.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5735: pg_upgrade thinks that it did not start the old server
Date: Tue, 09 Nov 2010 10:45:49 +0100
Message-ID: <4CD9184D.3040300@gmail.com> (raw)
In-Reply-To: <AANLkTimO3MW9sTWR5yo5oRz+gBXqyHMn=yt6y4WJ3JtP@mail.gmail.com>
References: <201010301429.o9UETDop059721@wwwmaster.postgresql.org>
	<AANLkTik3q_BbsOJOHcvzPuGa0AxMGbxaVrvJBpoLODwB@mail.gmail.com>
	<4CCCC6A5.5000601@gmail.com>
	<AANLkTimO3MW9sTWR5yo5oRz+gBXqyHMn=yt6y4WJ3JtP@mail.gmail.com>

Hi Robert,

On 11/08/2010 10:23 PM, Robert Haas wrote:
> On Sat, Oct 30, 2010 at 9:30 PM, Arturas Mazeika<mazeika@gmail.com>  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



view thread (13+ messages)  latest in thread

Message-ID: <4CD9184D.3040300@gmail.com>
Permalink:  ../4CD9184D.3040300@gmail.com/
Also on:    postgresql.org/message-id/4CD9184D.3040300@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: mazeika@gmail.com, robertmhaas@gmail.com, dpage@pgadmin.org
  Subject: Re: BUG #5735: pg_upgrade thinks that it did not start the old server
  In-Reply-To: <4CD9184D.3040300@gmail.com>
  References: <201010301429.o9UETDop059721@wwwmaster.postgresql.org> <AANLkTik3q_BbsOJOHcvzPuGa0AxMGbxaVrvJBpoLODwB@mail.gmail.com> <4CCCC6A5.5000601@gmail.com> <AANLkTimO3MW9sTWR5yo5oRz+gBXqyHMn=yt6y4WJ3JtP@mail.gmail.com> <4CD9184D.3040300@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox