Re: pg_restore and FK constraints with large dbs

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: oneway_111(at)yahoo(dot)com, pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_restore and FK constraints with large dbs
Date: 2003-11-17 19:47:03
Message-ID: 20031117144703.138edb9f.threshar@torgo.978.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, 17 Nov 2003 10:40:20 -0800 (PST)
Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)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(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2003-11-17 19:57:23 Re: pg_restore and FK constraints with large dbs
Previous Message Stephan Szabo 2003-11-17 18:40:20 Re: pg_restore and FK constraints with large dbs