diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/miscadmin.h | 8 | ||||
-rw-r--r-- | src/include/tcop/tcopprot.h | 5 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 42a2b38cac9..3f97fcef800 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -288,7 +288,12 @@ extern PGDLLIMPORT int VacuumCostBalance; extern PGDLLIMPORT bool VacuumCostActive; -/* in tcop/postgres.c */ +/* in utils/misc/stack_depth.c */ + +extern PGDLLIMPORT int max_stack_depth; + +/* Required daylight between max_stack_depth and the kernel limit, in bytes */ +#define STACK_DEPTH_SLOP (512 * 1024L) typedef char *pg_stack_base_t; @@ -296,6 +301,7 @@ extern pg_stack_base_t set_stack_base(void); extern void restore_stack_base(pg_stack_base_t base); extern void check_stack_depth(void); extern bool stack_is_too_deep(void); +extern long get_stack_depth_rlimit(void); /* in tcop/utility.c */ extern void PreventCommandIfReadOnly(const char *cmdname); diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h index 0c36d927425..3c6ed917e17 100644 --- a/src/include/tcop/tcopprot.h +++ b/src/include/tcop/tcopprot.h @@ -21,12 +21,8 @@ #include "utils/queryenvironment.h" -/* Required daylight between max_stack_depth and the kernel limit, in bytes */ -#define STACK_DEPTH_SLOP (512 * 1024L) - extern PGDLLIMPORT CommandDest whereToSendOutput; extern PGDLLIMPORT const char *debug_query_string; -extern PGDLLIMPORT int max_stack_depth; extern PGDLLIMPORT int PostAuthDelay; extern PGDLLIMPORT int client_connection_check_interval; @@ -86,7 +82,6 @@ extern void PostgresSingleUserMain(int argc, char *argv[], const char *username) pg_attribute_noreturn(); extern void PostgresMain(const char *dbname, const char *username) pg_attribute_noreturn(); -extern long get_stack_depth_rlimit(void); extern void ResetUsage(void); extern void ShowUsage(const char *title); extern int check_log_duration(char *msec_str, bool was_logged); |