pgsql-server/src/backend bootstrap/bootstrap.c ...

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

pgsql-server/src/backend bootstrap/bootstrap.c ...

От:
tgl@postgresql.org (Tom Lane)
Дата:
CVSROOT:	/cvsroot
Module name:	pgsql-server
Changes by:	tgl@postgresql.org	02/09/25 16:31:40

Modified files:
	src/backend/bootstrap: bootstrap.c 
	src/backend/postmaster: pgstat.c 
	src/backend/storage/buffer: buf_init.c 
	src/backend/storage/lmgr: lwlock.c proc.c 
	src/backend/tcop: postgres.c 

Log message:
	Remove ShutdownBufferPoolAccess exit callback, and do the work in
	ProcKill instead, where we still have a PGPROC with which to wait on
	LWLocks.  This fixes 'can't wait without a PROC structure' failures
	occasionally seen during backend shutdown (I'm surprised they weren't
	more frequent, actually).  Add an Assert() to LWLockAcquire to help
	catch any similar mistakes in future.  Fix failure to update MyProcPid
	for standalone backends and pgstat processes.

FAQ