Re: Why are pg_restore taking that long ?

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: Bosco Rama <postgres(at)boscorama(dot)com>
Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why are pg_restore taking that long ?
Date: 2012-05-20 03:37:40
Message-ID: CAK3UJREsfzPWSP-3K3c7+Zx25E+1bpfLX74NX1sBxkb-f505Cg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, May 18, 2012 at 5:58 PM, Bosco Rama <postgres(at)boscorama(dot)com> wrote:

> The per-blob messages are missing whether we use the '-j2' or not and also
> regardless of number of '-v's we use.
>
> I'm glad they've reinstated some of the messages.  Previously there was
> a message per blob between the "restoring BLOBS" and "restored NNN large
> objects" messages.  It's a pity they've gone because we used them as a
> 'progress meter' of sorts.  They disappeared somewhere around 8.4.8 or
> 8.4.9 IIRC and, unfortunately, we are currently restricted to the 8.4.x
> series. :-(

FYI, some digging with git bisect pointed me to this commit:
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=c0d5be5d6a736d2ee8141e920bc3de8e001bf6d9

which introduced the per-blob message I showed before, e.g.

>> pg_restore: executing BLOB 126810

The above commit was made during 9.0dev, and doesn't look to have been
backported to 8.4. The 8.4 versions should display something like this
in verbose mode:

pg_restore: restoring BLOBS
pg_restore: restored 10 large objects
pg_restore: restoring BLOB COMMENTS
...

i.e. no per-blob message. (I've verified the messages above are
similar on 8.4.1 and 8.4.11.) Maybe you were using a 9.0+ version of
pg_restore when you saw per-blob messages?

Josh

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bosco Rama 2012-05-20 05:57:05 Re: Why are pg_restore taking that long ?
Previous Message Adrian Klaver 2012-05-19 18:42:05 Re: timestamps, formatting, and internals