Re: pgsql: Fix thinko when bumping on temporary directories inpg_verify_ch

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgsql: Fix thinko when bumping on temporary directories inpg_verify_ch
Дата
Msg-id 20190316013801.GA22963@paquier.xyz
обсуждение исходный текст
Ответ на Re: pgsql: Fix thinko when bumping on temporary directories in pg_verify_ch  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-committers
On Fri, Mar 15, 2019 at 10:09:57AM -0400, Robert Haas wrote:
> OK.  My other gripe with this commit message is that it doesn't
> actually explain what problem was being fixed.  You explain that it's
> wrong, and you explain why fixing it is not a big deal, but you never
> quite say what you're actually fixing.

I have re-read the commit log a couple of times, and I see your
point, sorry for the confusion.  I should have added an extra
paragraph to mention that when pg_verify_checksums sees a directory
folder name which matches PG_TEMP_FILES_DIR when scanning all the
entries of a path for checksum verification, then it would return
immediately, skipping all the follow-up entries in this path,
potentially missing checks in a portion of files.  The reason why it
is not a problem is actually that PG_TEMP_FILE_PREFIX and
PG_TEMP_FILES_DIR have the same value "pgsql_tmp", and that when
seeing an entry which matches PG_TEMP_FILE_PREFIX, then the scan of
the current folder would correctly move on to the next entry in the
current folder instead of simply returning and missing the next
entries.
--
Michael

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: pgsql: Improve code comments in b0eaa4c51b.
Следующее
От: Michael Meskes
Дата:
Сообщение: pgsql: Use correct connection name variable in ecpglib.