pgsql-server/src/backend/access/transam xlog.c

Поиск
Список
Период
Сортировка
Искать

pgsql-server/src/backend/access/transam xlog.c

От:
tgl@postgresql.org (Tom Lane)
Дата:
CVSROOT:	/cvsroot
Module name:	pgsql-server
Changes by:	tgl@postgresql.org	03/01/24 22:06:04

Modified files:
	src/backend/access/transam: xlog.c 

Log message:
	Use stat(2) to probe for existing xlog segments in InstallXLogFileSegment,
	rather than actually opening the files.  This eliminates some corner cases
	where the file indeed exists but open() fails for another reason, such
	as being out of file descriptors.  The net reliability gain is probably
	tiny, since xlog.c is full of other file open calls that will elog(PANIC)
	if they fail for any reason; but this specific failure mode has been
	observed in the field, so we may as well fix it.

FAQ