* InitBufferPoolBackend --- second-stage initialization of a new backend * * This is called after we have acquired a PGPROC and so can safely get * LWLocks. We don't currently need to do anything at this stage ... * except register a shmem-exit callback. AtProcExit_Buffers needs LWLock * access, and thereby has to be called at the corresponding phase of * backend shutdown. */
| 2773 | * backend shutdown. |
| 2774 | */ |
| 2775 | void |
| 2776 | InitBufferPoolBackend(void) |
| 2777 | { |
| 2778 | on_shmem_exit(AtProcExit_Buffers, 0); |
| 2779 | } |
| 2780 | |
| 2781 | /* |
| 2782 | * During backend exit, ensure that we released all shared-buffer locks and |
no test coverage detected