mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
This patch properly sets the prototype for the on_shmem_exit and
on_proc_exit functions, and adjust all other related code to use the proper types too. by Kurt Roeckx
This commit is contained in:
parent
7ac2f11c14
commit
2afacfc403
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.126 2003/11/29 19:51:40 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.127 2003/12/12 18:45:08 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -3086,7 +3086,7 @@ GetRedoRecPtr(void)
|
|||||||
* This must be called ONCE during postmaster or standalone-backend shutdown
|
* This must be called ONCE during postmaster or standalone-backend shutdown
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
ShutdownXLOG(void)
|
ShutdownXLOG(int code, Datum arg)
|
||||||
{
|
{
|
||||||
ereport(LOG,
|
ereport(LOG,
|
||||||
(errmsg("shutting down")));
|
(errmsg("shutting down")));
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.169 2003/12/01 22:15:37 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.170 2003/12/12 18:45:08 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -478,8 +478,8 @@ BootstrapMain(int argc, char *argv[])
|
|||||||
proc_exit(0); /* done */
|
proc_exit(0); /* done */
|
||||||
|
|
||||||
case BS_XLOG_SHUTDOWN:
|
case BS_XLOG_SHUTDOWN:
|
||||||
ShutdownXLOG();
|
ShutdownXLOG(0, 0);
|
||||||
DumpFreeSpaceMap();
|
DumpFreeSpaceMap(0, 0);
|
||||||
proc_exit(0); /* done */
|
proc_exit(0); /* done */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/catalog/namespace.c,v 1.59 2003/11/29 19:51:45 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/catalog/namespace.c,v 1.60 2003/12/12 18:45:08 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -130,7 +130,7 @@ char *namespace_search_path = NULL;
|
|||||||
static void recomputeNamespacePath(void);
|
static void recomputeNamespacePath(void);
|
||||||
static void InitTempTableNamespace(void);
|
static void InitTempTableNamespace(void);
|
||||||
static void RemoveTempRelations(Oid tempNamespaceId);
|
static void RemoveTempRelations(Oid tempNamespaceId);
|
||||||
static void RemoveTempRelationsCallback(void);
|
static void RemoveTempRelationsCallback(int code, Datum arg);
|
||||||
static void NamespaceCallback(Datum arg, Oid relid);
|
static void NamespaceCallback(Datum arg, Oid relid);
|
||||||
|
|
||||||
/* These don't really need to appear in any header file */
|
/* These don't really need to appear in any header file */
|
||||||
@ -1735,7 +1735,7 @@ RemoveTempRelations(Oid tempNamespaceId)
|
|||||||
* Callback to remove temp relations at backend exit.
|
* Callback to remove temp relations at backend exit.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
RemoveTempRelationsCallback(void)
|
RemoveTempRelationsCallback(int code, Datum arg)
|
||||||
{
|
{
|
||||||
if (OidIsValid(myTempNamespace)) /* should always be true */
|
if (OidIsValid(myTempNamespace)) /* should always be true */
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.105 2003/11/29 19:51:47 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.106 2003/12/12 18:45:08 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -120,7 +120,7 @@ bool Trace_notify = false;
|
|||||||
|
|
||||||
|
|
||||||
static void Async_UnlistenAll(void);
|
static void Async_UnlistenAll(void);
|
||||||
static void Async_UnlistenOnExit(void);
|
static void Async_UnlistenOnExit(int code, Datum arg);
|
||||||
static void ProcessIncomingNotify(void);
|
static void ProcessIncomingNotify(void);
|
||||||
static void NotifyMyFrontEnd(char *relname, int32 listenerPID);
|
static void NotifyMyFrontEnd(char *relname, int32 listenerPID);
|
||||||
static bool AsyncExistsPendingNotify(const char *relname);
|
static bool AsyncExistsPendingNotify(const char *relname);
|
||||||
@ -384,7 +384,7 @@ Async_UnlistenAll(void)
|
|||||||
*--------------------------------------------------------------
|
*--------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
Async_UnlistenOnExit(void)
|
Async_UnlistenOnExit(int code, Datum arg)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We need to start/commit a transaction for the unlisten, but if
|
* We need to start/commit a transaction for the unlisten, but if
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.167 2003/11/29 19:51:49 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.168 2003/12/12 18:45:08 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -88,7 +88,7 @@
|
|||||||
#include "storage/ipc.h"
|
#include "storage/ipc.h"
|
||||||
|
|
||||||
|
|
||||||
static void pq_close(void);
|
static void pq_close(int code, Datum arg);
|
||||||
|
|
||||||
#ifdef HAVE_UNIX_SOCKETS
|
#ifdef HAVE_UNIX_SOCKETS
|
||||||
static int Lock_AF_UNIX(unsigned short portNumber, char *unixSocketName);
|
static int Lock_AF_UNIX(unsigned short portNumber, char *unixSocketName);
|
||||||
@ -145,7 +145,7 @@ pq_init(void)
|
|||||||
* --------------------------------
|
* --------------------------------
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
pq_close(void)
|
pq_close(int code, Datum arg)
|
||||||
{
|
{
|
||||||
if (MyProcPort != NULL)
|
if (MyProcPort != NULL)
|
||||||
{
|
{
|
||||||
@ -183,7 +183,7 @@ static char sock_path[MAXPGPATH];
|
|||||||
*/
|
*/
|
||||||
#ifdef HAVE_UNIX_SOCKETS
|
#ifdef HAVE_UNIX_SOCKETS
|
||||||
static void
|
static void
|
||||||
StreamDoUnlink(void)
|
StreamDoUnlink(int code, Datum arg)
|
||||||
{
|
{
|
||||||
Assert(sock_path[0]);
|
Assert(sock_path[0]);
|
||||||
unlink(sock_path);
|
unlink(sock_path);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/port/ipc_test.c,v 1.11 2003/11/29 19:51:54 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/port/ipc_test.c,v 1.12 2003/12/12 18:45:09 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -62,7 +62,7 @@ bool assert_enabled = true;
|
|||||||
|
|
||||||
static struct ONEXIT
|
static struct ONEXIT
|
||||||
{
|
{
|
||||||
void (*function) ();
|
void (*function) (int code, Datum arg);
|
||||||
Datum arg;
|
Datum arg;
|
||||||
} on_proc_exit_list[MAX_ON_EXITS], on_shmem_exit_list[MAX_ON_EXITS];
|
} on_proc_exit_list[MAX_ON_EXITS], on_shmem_exit_list[MAX_ON_EXITS];
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ shmem_exit(int code)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
on_shmem_exit(void (*function) (), Datum arg)
|
on_shmem_exit(void (*function) (int code, Datum arg), Datum arg)
|
||||||
{
|
{
|
||||||
if (on_shmem_exit_index >= MAX_ON_EXITS)
|
if (on_shmem_exit_index >= MAX_ON_EXITS)
|
||||||
elog(FATAL, "out of on_shmem_exit slots");
|
elog(FATAL, "out of on_shmem_exit slots");
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.103 2003/11/29 19:51:56 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.104 2003/12/12 18:45:09 petere Exp $
|
||||||
*
|
*
|
||||||
* NOTES:
|
* NOTES:
|
||||||
*
|
*
|
||||||
@ -205,7 +205,7 @@ static int FileAccess(File file);
|
|||||||
static File fileNameOpenFile(FileName fileName, int fileFlags, int fileMode);
|
static File fileNameOpenFile(FileName fileName, int fileFlags, int fileMode);
|
||||||
static char *filepath(const char *filename);
|
static char *filepath(const char *filename);
|
||||||
static long pg_nofile(void);
|
static long pg_nofile(void);
|
||||||
static void AtProcExit_Files(void);
|
static void AtProcExit_Files(int code, Datum arg);
|
||||||
static void CleanupTempFiles(bool isProcExit);
|
static void CleanupTempFiles(bool isProcExit);
|
||||||
|
|
||||||
|
|
||||||
@ -1141,7 +1141,7 @@ AtEOXact_Files(void)
|
|||||||
* Here, we want to clean up *all* temp files including interXact ones.
|
* Here, we want to clean up *all* temp files including interXact ones.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
AtProcExit_Files(void)
|
AtProcExit_Files(int code, Datum arg)
|
||||||
{
|
{
|
||||||
CleanupTempFiles(true);
|
CleanupTempFiles(true);
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.26 2003/11/29 19:51:56 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.27 2003/12/12 18:45:09 petere Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTES:
|
* NOTES:
|
||||||
@ -717,7 +717,7 @@ PrintFreeSpaceMapStatistics(int elevel)
|
|||||||
* forma --- if anyone else is still accessing FSM, there's a problem.
|
* forma --- if anyone else is still accessing FSM, there's a problem.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
DumpFreeSpaceMap(void)
|
DumpFreeSpaceMap(int code, Datum arg)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
char cachefilename[MAXPGPATH];
|
char cachefilename[MAXPGPATH];
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/storage/ipc/ipc.c,v 1.86 2003/11/29 19:51:56 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/storage/ipc/ipc.c,v 1.87 2003/12/12 18:45:09 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -53,7 +53,7 @@ bool proc_exit_inprogress = false;
|
|||||||
|
|
||||||
static struct ONEXIT
|
static struct ONEXIT
|
||||||
{
|
{
|
||||||
void (*function) ();
|
void (*function) (int code, Datum arg);
|
||||||
Datum arg;
|
Datum arg;
|
||||||
} on_proc_exit_list[MAX_ON_EXITS], on_shmem_exit_list[MAX_ON_EXITS];
|
} on_proc_exit_list[MAX_ON_EXITS], on_shmem_exit_list[MAX_ON_EXITS];
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ shmem_exit(int code)
|
|||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
on_proc_exit(void (*function) (), Datum arg)
|
on_proc_exit(void (*function) (int code, Datum arg), Datum arg)
|
||||||
{
|
{
|
||||||
if (on_proc_exit_index >= MAX_ON_EXITS)
|
if (on_proc_exit_index >= MAX_ON_EXITS)
|
||||||
ereport(FATAL,
|
ereport(FATAL,
|
||||||
@ -167,7 +167,7 @@ void
|
|||||||
* ----------------------------------------------------------------
|
* ----------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
on_shmem_exit(void (*function) (), Datum arg)
|
on_shmem_exit(void (*function) (int code, Datum arg), Datum arg)
|
||||||
{
|
{
|
||||||
if (on_shmem_exit_index >= MAX_ON_EXITS)
|
if (on_shmem_exit_index >= MAX_ON_EXITS)
|
||||||
ereport(FATAL,
|
ereport(FATAL,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.139 2003/12/01 21:59:25 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.140 2003/12/12 18:45:09 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -84,8 +84,8 @@ static volatile bool deadlock_timeout_active = false;
|
|||||||
static struct timeval statement_fin_time;
|
static struct timeval statement_fin_time;
|
||||||
|
|
||||||
|
|
||||||
static void ProcKill(void);
|
static void ProcKill(int code, Datum arg);
|
||||||
static void DummyProcKill(void);
|
static void DummyProcKill(int code, Datum arg);
|
||||||
static bool CheckStatementTimeout(void);
|
static bool CheckStatementTimeout(void);
|
||||||
|
|
||||||
|
|
||||||
@ -406,7 +406,7 @@ ProcReleaseLocks(bool isCommit)
|
|||||||
* this process. Release any of its held LW locks.
|
* this process. Release any of its held LW locks.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
ProcKill(void)
|
ProcKill(int code, Datum arg)
|
||||||
{
|
{
|
||||||
/* use volatile pointer to prevent code rearrangement */
|
/* use volatile pointer to prevent code rearrangement */
|
||||||
volatile PROC_HDR *procglobal = ProcGlobal;
|
volatile PROC_HDR *procglobal = ProcGlobal;
|
||||||
@ -455,7 +455,7 @@ ProcKill(void)
|
|||||||
* as not-in-use.
|
* as not-in-use.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
DummyProcKill(void)
|
DummyProcKill(int code, Datum arg)
|
||||||
{
|
{
|
||||||
PGPROC *dummyproc;
|
PGPROC *dummyproc;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/storage/smgr/smgr.c,v 1.66 2003/11/29 19:51:57 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/storage/smgr/smgr.c,v 1.67 2003/12/12 18:45:09 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -24,7 +24,7 @@
|
|||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
|
|
||||||
|
|
||||||
static void smgrshutdown(void);
|
static void smgrshutdown(int code, Datum arg);
|
||||||
|
|
||||||
typedef struct f_smgr
|
typedef struct f_smgr
|
||||||
{
|
{
|
||||||
@ -142,7 +142,7 @@ smgrinit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
smgrshutdown(void)
|
smgrshutdown(int code, Datum arg)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.130 2003/11/29 19:52:01 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/init/postinit.c,v 1.131 2003/12/12 18:45:09 petere Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
static void ReverifyMyDatabase(const char *name);
|
static void ReverifyMyDatabase(const char *name);
|
||||||
static void InitCommunication(void);
|
static void InitCommunication(void);
|
||||||
static void ShutdownPostgres(void);
|
static void ShutdownPostgres(int code, Datum arg);
|
||||||
static bool ThereIsAtLeastOneUser(void);
|
static bool ThereIsAtLeastOneUser(void);
|
||||||
|
|
||||||
|
|
||||||
@ -453,7 +453,7 @@ InitPostgres(const char *dbname, const char *username)
|
|||||||
* cleanup fails.
|
* cleanup fails.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
ShutdownPostgres(void)
|
ShutdownPostgres(int code, Datum arg)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* These operations are really just a minimal subset of
|
* These operations are really just a minimal subset of
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.45 2003/11/29 22:40:55 pgsql Exp $
|
* $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.46 2003/12/12 18:45:10 petere Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef XLOG_H
|
#ifndef XLOG_H
|
||||||
#define XLOG_H
|
#define XLOG_H
|
||||||
@ -207,7 +207,7 @@ extern void XLOGShmemInit(void);
|
|||||||
extern void XLOGPathInit(void);
|
extern void XLOGPathInit(void);
|
||||||
extern void BootStrapXLOG(void);
|
extern void BootStrapXLOG(void);
|
||||||
extern void StartupXLOG(void);
|
extern void StartupXLOG(void);
|
||||||
extern void ShutdownXLOG(void);
|
extern void ShutdownXLOG(int code, Datum arg);
|
||||||
extern void CreateCheckPoint(bool shutdown, bool force);
|
extern void CreateCheckPoint(bool shutdown, bool force);
|
||||||
extern void SetThisStartUpID(void);
|
extern void SetThisStartUpID(void);
|
||||||
extern void XLogPutNextOid(Oid nextOid);
|
extern void XLogPutNextOid(Oid nextOid);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.14 2003/11/29 22:41:13 pgsql Exp $
|
* $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.15 2003/12/12 18:45:10 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -60,7 +60,7 @@ extern void FreeSpaceMapForgetDatabase(Oid dbid);
|
|||||||
|
|
||||||
extern void PrintFreeSpaceMapStatistics(int elevel);
|
extern void PrintFreeSpaceMapStatistics(int elevel);
|
||||||
|
|
||||||
extern void DumpFreeSpaceMap(void);
|
extern void DumpFreeSpaceMap(int code, Datum arg);
|
||||||
extern void LoadFreeSpaceMap(void);
|
extern void LoadFreeSpaceMap(void);
|
||||||
|
|
||||||
#ifdef FREESPACE_DEBUG
|
#ifdef FREESPACE_DEBUG
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/storage/ipc.h,v 1.62 2003/11/29 22:41:13 pgsql Exp $
|
* $PostgreSQL: pgsql/src/include/storage/ipc.h,v 1.63 2003/12/12 18:45:10 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -24,8 +24,8 @@ extern bool proc_exit_inprogress;
|
|||||||
|
|
||||||
extern void proc_exit(int code);
|
extern void proc_exit(int code);
|
||||||
extern void shmem_exit(int code);
|
extern void shmem_exit(int code);
|
||||||
extern void on_proc_exit(void (*function) (), Datum arg);
|
extern void on_proc_exit(void (*function) (int code, Datum arg), Datum arg);
|
||||||
extern void on_shmem_exit(void (*function) (), Datum arg);
|
extern void on_shmem_exit(void (*function) (int code, Datum arg), Datum arg);
|
||||||
extern void on_exit_reset(void);
|
extern void on_exit_reset(void);
|
||||||
|
|
||||||
/* ipci.c */
|
/* ipci.c */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user