pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: >24 hour restore
Date: Wed, 28 May 2003 14:14:03 -0400
Message-ID: <20030528181402.GK6637@libertyrms.info> (raw)
In-Reply-To: <02aa01c32542$ef61f730$32021aac@chad>
References: <027901c32530$273839c0$32021aac@chad>
	<20030528162455.GG6637@libertyrms.info>
	<02aa01c32542$ef61f730$32021aac@chad>

On Wed, May 28, 2003 at 11:59:49AM -0600, Chad Thompson wrote:

> This was my first thought.  After about an hour of running, I stopped the
> process, edited the schema file to remove all the foreign keys and triggers.
> I then started it again.  So there SHOULD be no triggers right now.

Hmm.

> UPDATE:  I stopped the restore, before it was stopped, top showed postmaster
> using 17% CPU.  After stopping I noticed that it DID fill my largest table
> (1.16 M tuples) over night.  So I am editing the dump file to continue where
> it left off. ( vi is the only thing that is not choking on the 2.4 gig file)
> That is good news because that means it wont take 7-10 days to import, just
> 1-2.

Sounds like you have an I/O problem. 

> As for version (oops) my old version was 7.3.1 and I am moving to 7.3.2

Why don't you just shut down your 7.3.1 postmaster and start 7.3.2? 
This requires no initdb.  If you're changing machines (ISTR you are),
then copy the tree, assuming the same OS.

> Oh, a bit off topic... I remember that I wanted to move the WAL files off of
> the raid but forgot to do it on start up.  Can I do that now that the system
> is setup?  Where would I find docs to tell me about that?

Sure.  Stop the postmaster, copy the pg_xlog directory to the target
location, then make a soft link.  (I usually use cp and move the old
dir out of the way temporarily to start with, just in case.)

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (6+ messages)  latest in thread

Message-ID: <20030528181402.GK6637@libertyrms.info>
Permalink:  ../20030528181402.GK6637@libertyrms.info/
Also on:    postgresql.org/message-id/20030528181402.GK6637@libertyrms.info

 · 

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-performance@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: >24 hour restore
  In-Reply-To: <20030528181402.GK6637@libertyrms.info>
  References: <027901c32530$273839c0$32021aac@chad> <20030528162455.GG6637@libertyrms.info> <02aa01c32542$ef61f730$32021aac@chad> <20030528181402.GK6637@libertyrms.info>

* 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