Re: static global variable openLogOff in xlog.c seems no longer used

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: static global variable openLogOff in xlog.c seems no longer used
Дата
Msg-id 20190129043439.GB3121@paquier.xyz
обсуждение исходный текст
Ответ на static global variable openLogOff in xlog.c seems no longer used  ("Takashi Menjo" <menjo.takashi@lab.ntt.co.jp>)
Ответы RE: static global variable openLogOff in xlog.c seems no longer used  ("Takashi Menjo" <menjo.takashi@lab.ntt.co.jp>)
Список pgsql-hackers
On Tue, Jan 29, 2019 at 11:49:37AM +0900, Takashi Menjo wrote:
> Because of pg_pwrite()[1], openLogOff, a static global variable in xlog.c,
> seems taken over by a local variable startoffset and no longer used
> now.

It seems to me that keeping openLogOff is still useful to get a report
about the full chunk area being written if the data gets written in
multiple chunks and fails afterwards.  Your patch would modify the
report so as only the area with the partial write is reported.  For
debugging, having a static reference is also useful in my opinion.
--
Michael

Вложения

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

Предыдущее
От: Sven Berkvens-Matthijsse
Дата:
Сообщение: Follow-up on INSERT INTO ... SET ...
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pg_stat_ssl additions