From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | "Nguyen, Dan" <danguyen(at)lsil(dot)com> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: newbie psql - Backup/Restore - database |
Date: | 2002-10-23 13:11:42 |
Message-ID: | 20021023061053.X3876-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Mon, 21 Oct 2002, Nguyen, Dan wrote:
> Hello all,
>
> I just convert a MSQL database to PSQL and wondering if someone can help me
> to duplicate or restore a database in a short period. Here is what I have
> done.
>
> Backup <users> database:
> pg_dump -C -D -n -f backupDB.psql users
>
> Duplicate <users> database:
> 1. createdb test
> 2. edit the backupDB.psql file and remove the first block regarding users
> DATABASE
> 3. psql -a -e -f backupDB.psql test
>
>
> Doing this way will take about a hour to duplicate a database with about
> 50,000 records. Is there any other ways that you can help me to speed up
> the process?
Not using -D to pg_dump will probably help since that'll use copy rather
than insert.
From | Date | Subject | |
---|---|---|---|
Next Message | Ian Barwick | 2002-10-23 13:38:36 | Re: Print line? |
Previous Message | Stephan Szabo | 2002-10-23 13:10:18 | Re: INT array field referencing same table |