From 2d8e3d1d7155ead809047b35ff953ab02dc8e68a Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Thu, 13 Oct 2005 22:57:27 +0000
Subject: [PATCH] Make stack_base_ptr non-static, for PL/Java.

---
 src/backend/tcop/postgres.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 44d799c9864..8b722c2e015 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.464 2005/10/05 23:46:06 neilc Exp $
+ *	  $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.465 2005/10/13 22:57:27 momjian Exp $
  *
  * NOTES
  *	  this is the "main" module of the postgres backend and
@@ -95,7 +95,8 @@ int			max_stack_depth = 2048;
 static int	max_stack_depth_bytes = 2048 * 1024;
 
 /* stack base pointer (initialized by PostgresMain) */
-static char *stack_base_ptr = NULL;
+/* Do not make static so PL/Java can modifiy it */
+char *stack_base_ptr = NULL;
 
 
 /*
-- 
GitLab