Re: Why are pg_restore taking that long ?

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема Re: Why are pg_restore taking that long ?
Дата
Msg-id CAK3UJRHY=TsWUDsYpSZ=DhxwY3EX8GM8d6b0WidqNyVmAyugDA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Why are pg_restore taking that long ?  (Poul Møller Hansen <freebsd@pbnet.dk>)
Ответы Re: Why are pg_restore taking that long ?  (Poul Møller Hansen <freebsd@pbnet.dk>)
Список pgsql-general
On Sun, May 20, 2012 at 8:39 AM, Poul Møller Hansen <freebsd@pbnet.dk> wrote:

>> Anyway, if you are seeing no activity at the end of the restore for quite
>> a while you may want to see if large objects are the reason.
>>
>
> The dump are from a version 9.0.7 and it's being restored in a version
> 9.1.3. There are no large objects.
>
> I'm now doing another restore with the -v switch, and hopefully it will show
> what it is doing at the end.
> There are Bucardo triggers in the database. Perhaps it can be the reason,
> and it should be restored with the "--disable-triggers" switch ?

Possibly. You should be able to tell what's taking so much time by
keeping an eye on your server during the restore. You could set
log_statement = 'all' (or just 'ddl' if there is significant other
activity in other databases) during the restore, and keep an eye on
pg_stat_activity if you need to.


Josh

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why are pg_restore taking that long ?
Следующее
От: Ian Harding
Дата:
Сообщение: Re: Locking or Something Else?