Re: set_ps_display during recovery

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: set_ps_display during recovery
Дата
Msg-id 1191162898.4174.118.camel@ebony.site
обсуждение исходный текст
Ответ на Re: set_ps_display during recovery  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
On Sun, 2007-09-30 at 10:28 -0400, Tom Lane wrote:
> Simon Riggs <simon@2ndquadrant.com> writes:
> > On Sat, 2007-09-29 at 14:34 -0400, Tom Lane wrote:
> >> Hmm, not right there, because we don't know that the file actually
> >> exists yet.  Applied with modifications ...
>
> > Double hmmm, that means when we are waiting for file X in pg_standby the
> > ps display will still show "recovering X-1". I'd prefer to set ps before
> > the call to RestoreArchivedFile(), since that is where the wait occurs.
> > I got that wrong myself.
>
> Well, if you think that's an important time component --- which it could
> be in archive situations, I guess --- there should be a separate PS
> display state for it.

Agreed. I think it will save time answering questions on -admin later.

> Perhaps "fetching XXX" vs "restoring XXX"?

Restoring is the right term, I think.

--
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: set_ps_display during recovery
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: set_ps_display during recovery