diff options
author | Tom Lane | 2006-08-08 19:15:09 +0000 |
---|---|---|
committer | Tom Lane | 2006-08-08 19:15:09 +0000 |
commit | b09bfcaa576c1a3e0c34a747a502bae909b984a8 (patch) | |
tree | fe1c80a8cf23b37d2ea78345cd3580ac2c588eed /src/include/miscadmin.h | |
parent | e00664da48cc31575c7105bbeff9e298a1ab1827 (diff) |
Add a feature for automatic initialization and finalization of dynamically
loaded libraries: call functions _PG_init() and _PG_fini() if the library
defines such symbols. Hence we no longer need to specify an initialization
function in preload_libraries: we can assume that the library used the
_PG_init() convention, instead. This removes one source of pilot error
in use of preloaded libraries. Original patch by Ralf Engelschall,
preload_libraries changes by me.
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r-- | src/include/miscadmin.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 429b9929a59..07590c92942 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.186 2006/03/05 15:58:53 momjian Exp $ + * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.187 2006/08/08 19:15:08 tgl Exp $ * * NOTES * some of the information in this file should be moved to other files. @@ -307,6 +307,8 @@ extern void BaseInit(void); /* in utils/init/miscinit.c */ extern bool IgnoreSystemIndexes; +extern char *preload_libraries_string; + extern void SetReindexProcessing(Oid heapOid, Oid indexOid); extern void ResetReindexProcessing(void); extern bool ReindexIsProcessingHeap(Oid heapOid); @@ -317,6 +319,6 @@ extern void TouchSocketLockFile(void); extern void RecordSharedMemoryInLockFile(unsigned long id1, unsigned long id2); extern void ValidatePgVersion(const char *path); -extern void process_preload_libraries(char *preload_libraries_string); +extern void process_preload_libraries(void); #endif /* MISCADMIN_H */ |