thinko in basic_archive.c

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема thinko in basic_archive.c
Дата
Msg-id 20221014044106.GA1673343@nathanxps13
обсуждение исходный текст
Ответы Re: thinko in basic_archive.c
Список pgsql-hackers
Hi hackers,

I intended for the temporary file name generated by basic_archive.c to
include the current timestamp so that the name was "sufficiently unique."
Of course, this could also be used to determine the creation time, but you
can just as easily use stat(1) for that.  In any case, I forgot to divide
the microseconds field by 1000 to obtain the current timestamp in
milliseconds, so while the value is unique, it's also basically garbage.
I've attached a small patch that fixes this so that the temporary file name
includes the timestamp in milliseconds for when it was created.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Вложения

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