aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-07-10 12:44:20 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-07-10 12:44:20 -0400
commit96112ee7c60557bb192a9aa07b514db2400fd45e (patch)
tree2235774637ebcf365fb5aa92cf687c887ea50efc /src/backend/tcop/postgres.c
parent30b2731bd21741a6370afba330cea31c75da3bdb (diff)
downloadpostgresql-96112ee7c60557bb192a9aa07b514db2400fd45e.tar.gz
postgresql-96112ee7c60557bb192a9aa07b514db2400fd45e.zip
Revert "Add some temporary code to record stack usage at server process exit."
This reverts commit 88cf37d2a86d5b66380003d7c3384530e3f91e40 as well as follow-on commits ea9c4a16d5ad88a1d28d43ef458e3209b53eb106 and c57562725d219c4249b82f4a4fb5aaeee3ae0d53. We've learned about as much as we can from the buildfarm.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 38cabf650a1..b185c1b5eb6 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -96,9 +96,6 @@ int max_stack_depth = 100;
/* wait N seconds to allow attach from a debugger */
int PostAuthDelay = 0;
-/* Exported for use by proc_exit */
-long max_measured_stack_depth = 0;
-long max_measured_register_stack_depth = 0;
/* ----------------
@@ -3140,11 +3137,6 @@ stack_is_too_deep(void)
if (stack_depth < 0)
stack_depth = -stack_depth;
- /* Track max measured depth for reporting by proc_exit */
- if (stack_depth > max_measured_stack_depth &&
- stack_base_ptr != NULL)
- max_measured_stack_depth = stack_depth;
-
/*
* Trouble?
*
@@ -3168,10 +3160,6 @@ stack_is_too_deep(void)
#if defined(__ia64__) || defined(__ia64)
stack_depth = (long) (ia64_get_bsp() - register_stack_base_ptr);
- if (stack_depth > max_measured_register_stack_depth &&
- register_stack_base_ptr != NULL)
- max_measured_register_stack_depth = stack_depth;
-
if (stack_depth > max_stack_depth_bytes &&
register_stack_base_ptr != NULL)
return true;