Re: how much left for restore?

From: Adrian von Bidder <avbidder(at)fortytwo(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how much left for restore?
Date: 2010-01-12 05:51:18
Message-ID: 201001120651.19175@fortytwo.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 08 January 2010 11.28:15 Ivan Sergio Borgonovo wrote:
> It would be enough just knowing which part of the file is being
> restored (without causing too much extra IO, that will definitively
> put my notebook on its knee).

Highly platform dependent, but has helped me a lot recently with various
(non-pg) tasks: on recent Linux, /proc/<pid>/fdinfo/ contains the current
file pointer, so you can see how far in the dump file pg has read.
(Assuming the restore reads the dump file just once from start to finish.)

Same problem as the other solutions with index creation etc. of course.

cheers
-- vbi

--
And those meanies used what we said to you and they misconstrued it to
mean what we said, and that's so unfair.
-- SCO lawyers about IBM (paraphrased - groklaw)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2010-01-12 05:55:36 Re: An issue with max() and order by ... limit 1 in postgresql8.3-beta3
Previous Message Greg Smith 2010-01-12 05:50:11 Re: location for pg_default tablespace