Re: [PERFORM] pg 7.4.x - pg_restore impossibly slow

2006-04-14 Thread patrick keshishian
On 4/13/06, Jim C. Nasby <[EMAIL PROTECTED]> wrote: > 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 anyw

Re: [PERFORM] pg 7.4.x - pg_restore impossibly slow

2006-04-14 Thread patrick keshishian
On 4/13/06, Tom Lane <[EMAIL PROTECTED]> wrote: > "patrick keshishian" <[EMAIL PROTECTED]> writes: > > With these settings and running: > > pg_restore -vaOd dbname dbname.DUMP > > If you had mentioned you were using random nondefault switches, we'd Random? With all due respect, I did. I specifie

Re: [PERFORM] pg 7.4.x - pg_restore impossibly slow

2006-04-13 Thread Jim C. Nasby
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 \ > dbna

Re: [PERFORM] pg 7.4.x - pg_restore impossibly slow

2006-04-13 Thread Tom Lane
"patrick keshishian" <[EMAIL PROTECTED]> writes: > With these settings and running: > pg_restore -vaOd dbname dbname.DUMP If you had mentioned you were using random nondefault switches, we'd have told you not to. -a in particular is a horrid idea performancewise --- a standard schema-plus-data re

Re: [PERFORM] pg 7.4.x - pg_restore impossibly slow

2006-04-13 Thread patrick keshishian
Hi Tom, et.al., So I changed the following settings in postgresql.conf file and restarted PostgreSQL and then proceeded with pg_restore: # new changes for this test-run log_statement = true sort_mem = 10240 # default 1024 vacuum_mem = 20480 # default 8192 # from before checkpoint_segments = 10 lo

Re: [PERFORM] pg 7.4.x - pg_restore impossibly slow

2006-04-12 Thread Tom Lane
"patrick keshishian" <[EMAIL PROTECTED]> writes: > My dev box is much slower hardware than the customer's > server. Even with that difference I expected to be able to > pg_restore the database within one day. But no. Seems a bit odd. Can you narrow down more closely which step of the restore is

[PERFORM] pg 7.4.x - pg_restore impossibly slow

2006-04-12 Thread patrick keshishian
Greetings, I have 395M pg_dump from a PostgreSQL 7.4.2 database. This dump is from one of our customer's servers. There is a web-based administration UI which has been reported to be extremely slow and unusable. To see what's going on with their data I have grabbed a copy of their nightly pg_dum