You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* ipc.h
|
|
|
|
* POSTGRES inter-process communication definitions.
|
|
|
|
*
|
|
|
|
* This file is misnamed, as it no longer has much of anything directly
|
|
|
|
* to do with IPC. The functionality here is concerned with managing
|
|
|
|
* exit-time cleanup for either a postmaster or a backend.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
|
|
|
* $Id: ipc.h,v 1.59 2003/05/02 21:59:31 momjian Exp $
|
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef IPC_H
|
|
|
|
#define IPC_H
|
|
|
|
|
|
|
|
|
|
|
|
/* ipc.c */
|
|
|
|
extern bool proc_exit_inprogress;
|
|
|
|
|
|
|
|
extern void proc_exit(int code);
|
|
|
|
extern void shmem_exit(int code);
|
|
|
|
extern void on_proc_exit(void (*function) (), Datum arg);
|
|
|
|
extern void on_shmem_exit(void (*function) (), Datum arg);
|
|
|
|
extern void on_exit_reset(void);
|
|
|
|
|
|
|
|
/* ipci.c */
|
|
|
|
extern void CreateSharedMemoryAndSemaphores(bool makePrivate,
|
|
|
|
int maxBackends,
|
|
|
|
int port);
|
|
|
|
|
|
|
|
#endif /* IPC_H */
|