pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff <threshar@torgo.978.org>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: oneway_111@yahoo.com
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore and FK constraints with large dbs
Date: Mon, 17 Nov 2003 14:47:03 -0500
Message-ID: <20031117144703.138edb9f.threshar@torgo.978.org> (raw)
In-Reply-To: <20031117103655.W99532@megazone.bigpanda.com>
References: <20031117041435.13499.qmail@web21402.mail.yahoo.com>
	<20031117103655.W99532@megazone.bigpanda.com>

On Mon, 17 Nov 2003 10:40:20 -0800 (PST)
Stephan Szabo <sszabo@megazone.bigpanda.com> wrote:

> 
> By the way, what does your schema look like?  I created an 80M row fk
> table and 20K row pk table with an int4 key between them and indexes on
> the two key fields.  It took about 25 minutes on my not terribly fast
> system using 7.4b5 to make the foreign key between them.  It might have
> been faster if I'd raised sort_mem to something larger than 8192.
> 

i missed the start of this thread... but unless you are running 7.4 adding an FK (restore) is very slow.  ZIt is fixed in 7.4.. especially w/lots of sort mem.

But the need still exists for a faster backup & restore. I've had a couple threads on this in I think -admin and -performance listts.


> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faqs/FAQ.html


-- 
--
Jeff Trout <jeff@jefftrout.com>                  
http://www.jefftrout.com/
http://www.stuarthamm.net/




view thread (30+ messages)  latest in thread

Message-ID: <20031117144703.138edb9f.threshar@torgo.978.org>
Permalink:  ../20031117144703.138edb9f.threshar@torgo.978.org/
Also on:    postgresql.org/message-id/20031117144703.138edb9f.threshar@torgo.978.org

 · 

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-admin@postgresql.org
  Cc: threshar@torgo.978.org, sszabo@megazone.bigpanda.com, oneway_111@yahoo.com
  Subject: Re: pg_restore and FK constraints with large dbs
  In-Reply-To: <20031117144703.138edb9f.threshar@torgo.978.org>
  References: <20031117041435.13499.qmail@web21402.mail.yahoo.com> <20031117103655.W99532@megazone.bigpanda.com> <20031117144703.138edb9f.threshar@torgo.978.org>

* 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