pg_dump / load seems really slow..

From: Chad <chadrosen(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_dump / load seems really slow..
Date: 2008-04-03 22:41:13
Message-ID: 72b9303f-645e-4624-bfe2-021c3b56acff@d21g2000prf.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Howdy!

I'm trying to build some fixture (test) data for a webapp I'm building
for my company. To do this I've taken a dump of data from production,
exported it using pg_dump, and load it via psql <database> < <file>

The data that is exported from production is about 25K rows and 12MB.
The dump takes less than a second but the load is taking 2 minutes.
The load step seems really slow. I'm wondering if there are ways to
tweak the system to load faster. Or, if the process cannot be spead up
I guess I don't need all 25 rows.. Is there a way to export a query to
file via command line?

export:

pg_dump forums --data-only --no-owner -t foo > <output file>

import:

psql forums < <output file>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message brian 2008-04-03 22:45:11 Re: Autograph Annoucement (ERD Tool)
Previous Message Colin Fox 2008-04-03 22:40:41 Autograph Annoucement (ERD Tool)