Re: Ways to speed up dump&reload

From: Vivek Khera <khera(at)yertle(dot)int(dot)kciLink(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Ways to speed up dump&reload
Date: 2005-02-23 22:05:22
Message-ID: 85d5urj5jx.fsf@yertle.int.kciLink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


max out your checkpoint_segments. 128 or 256 is good if you have
plenty of spare space for the pg_xlog directory. you will also want
to increase checkpoint_timeout to something large. I like 900 seconds
personally. if you can put pg_xlog on a separate physical RAID you're
best off.

increase the amount of ram your index operations can use (sort_mem or
work_mem depending on PG version) to a very large number and then
reset that to a normal value when you're done.

then just let pg_dump + pg_restore do its work.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera(at)kciLink(dot)com Rockville, MD +1-301-869-4449 x806
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mohsen Pahlevanzadeh 2005-02-23 22:17:38 Re: PQsetdb
Previous Message Joe Healy 2005-02-23 22:03:02 Re: Emacs and postgres