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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/backend bootstrap/bootstrap.c ...
Date: 2002-09-25 20:31:40
Message-ID: 20020925203140.B2CA9476A05@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)postgresql(dot)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.

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut - PostgreSQL 2002-09-25 21:16:10 pgsql-server/doc/src/sgml admin.sgml filelist. ...
Previous Message Tom Lane 2002-09-25 14:27:16 contrib/earthdistance earthdistance.out