From 03529a3ff999b0e4770b3e0b8e342400e383db98 Mon Sep 17 00:00:00 2001
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Sun, 8 Apr 2012 19:39:12 +0300
Subject: [PATCH] set_stack_base() no longer needs to be called in
 PostgresMain.

This was a thinko in previous commit. Now that stack base pointer is now set
in PostmasterMain and SubPostmasterMain, it doesn't need to be set in
PostgresMain anymore.
---
 src/backend/tcop/postgres.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 999f63bffb7..d5369f412e2 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')
 	{
-- 
GitLab