Re: pg 7.4.x - pg_restore impossibly slow

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: patrick keshishian <pkeshish(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-performance(at)postgresql(dot)org
Subject: Re: pg 7.4.x - pg_restore impossibly slow
Date: 2006-04-14 06:20:11
Message-ID: 20060414062010.GZ49405@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Apr 13, 2006 at 06:26:00PM -0700, patrick keshishian wrote:
> $ dropdb dbname
> $ createdb dbname
> $ pg_restore -vsOd dbname dbname.DUMP

That step is pointless, because the next pg_restore will create the
schema for you anyway.

> $ date > db.restore ; pg_restore -vcOd dbname \
> dbname.DUMP ; date >> db.restore
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message patrick keshishian 2006-04-14 06:59:51 Re: pg 7.4.x - pg_restore impossibly slow
Previous Message Jim C. Nasby 2006-04-14 06:14:14 Re: Blocks read for index scans