Re: BUG #16182: Error in logs from "renaming temporary statistics"

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #16182: Error in logs from "renaming temporary statistics"
Дата
Msg-id 20200102140703.GA4841@paquier.xyz
обсуждение исходный текст
Ответ на BUG #16182: Error in logs from "renaming temporary statistics"  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #16182: Error in logs from "renaming temporary statistics"  (Johan Fredrik Øhman <johanfo@ohman.no>)
Список pgsql-bugs
On Thu, Jan 02, 2020 at 06:55:37AM +0000, PG Bug reporting form wrote:
> I have checked the permissions of the folder and files, and I can not see
> why this occurs.

This error would occur on Windows when a concurrent process, external
to Postgres, has a file opened in non-shared mode while Postgres tries
to work on it.  In this case the work is done by pgrename() on
Postgres side which is a custom wrapper in src/port/dirmod.c to handle
this kind of scenarios with a retry-and-sleep logic, but it gives up
after 10s (100 tries of 100ms each).

This issue could be usually caused by an antivirus or something that
scans the files of the disk where Postgres data is located.  In this
case, the best thing you could do is to prevent the concurrent
activity from happening by filtering out Postgres data folder.  Nobody
can guess why this file is held opened that long though without
looking at your server when the problem happens.
--
Michael

Вложения

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16183: PREPARED STATEMENT slowed down by jit
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16184: Segmentation Fault during update