diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 999f63bffb747ed35254ec9c307ed734bf5c4b49..d5369f412e2cdf9ed8fcf16a37618bf5794cfdb8 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -3508,9 +3508,6 @@ PostgresMain(int argc, char *argv[], const char *username)
 
 	SetProcessingMode(InitProcessing);
 
-	/* Set up reference point for stack depth checking */
-	set_stack_base();
-
 	/* Compute paths, if we didn't inherit them from postmaster */
 	if (my_exec_path[0] == '\0')
 	{