summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2004-02-23 20:46:16 +0000
committerTom Lane2004-02-23 20:46:16 +0000
commit95a6dbf12b2aa7261cd6f13f41cc8de8a693ee75 (patch)
tree03985fbffc9a34f8e9ca3a58cacbbb7f49aed89f /src/include
parentfd7d98a271e65bc982e9af0f76b765ef50baa247 (diff)
Do a direct probe during postmaster startup to determine the maximum
number of openable files and the number already opened. This eliminates depending on sysconf(_SC_OPEN_MAX), and allows much saner behavior on platforms where open-file slots are used up by semaphores.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/storage/fd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/storage/fd.h b/src/include/storage/fd.h
index 30205031724..537fec5af9d 100644
--- a/src/include/storage/fd.h
+++ b/src/include/storage/fd.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: fd.h,v 1.39 2003/08/04 02:40:14 momjian Exp $
+ * $Id: fd.h,v 1.39.4.1 2004/02/23 20:46:16 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -71,6 +71,7 @@ extern void FreeFile(FILE *);
extern int BasicOpenFile(FileName fileName, int fileFlags, int fileMode);
/* Miscellaneous support routines */
+extern void set_max_safe_fds(void);
extern void closeAllVfds(void);
extern void AtEOXact_Files(void);
extern void RemovePgTempFiles(void);