diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-08 03:12:16 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-08-08 03:12:16 +0000 |
commit | 7117cd3a77afcf76b6488bd3e1d06f3160595027 (patch) | |
tree | 0d2feadbd044021b3cc8b5a89a68a6e720bb0afb /src/backend/storage/buffer/buf_init.c | |
parent | 89439b8c4fabf8e882f55c87979512af081f370b (diff) | |
download | postgresql-7117cd3a77afcf76b6488bd3e1d06f3160595027.tar.gz postgresql-7117cd3a77afcf76b6488bd3e1d06f3160595027.zip |
Cause ShutdownPostgres to do a normal transaction abort during backend
exit, instead of trying to take shortcuts. Introduce some additional
shutdown callback routines to eliminate kluges like having ProcKill
be responsible for shutting down the buffer manager. Ensure that the
order of operations during shutdown is predictable and what you would
expect given the module layering.
Diffstat (limited to 'src/backend/storage/buffer/buf_init.c')
-rw-r--r-- | src/backend/storage/buffer/buf_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/storage/buffer/buf_init.c b/src/backend/storage/buffer/buf_init.c index b2537cbc071..52e6ae02223 100644 --- a/src/backend/storage/buffer/buf_init.c +++ b/src/backend/storage/buffer/buf_init.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/buffer/buf_init.c,v 1.73 2005/05/19 21:35:46 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/buffer/buf_init.c,v 1.74 2005/08/08 03:11:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -149,6 +149,7 @@ InitBufferPool(void) * NB: this is called before InitProcess(), so we do not have a PGPROC and * cannot do LWLockAcquire; hence we can't actually access stuff in * shared memory yet. We are only initializing local data here. + * (See also InitBufferPoolBackend, over in bufmgr.c.) */ void InitBufferPoolAccess(void) |