On Windows, set the postmaster executable's stack size to 4MB, so that
authorTom Lane
Wed, 26 Jan 2005 21:55:26 +0000 (21:55 +0000)
committerTom Lane
Wed, 26 Jan 2005 21:55:26 +0000 (21:55 +0000)
it agrees with the default value of max_stack_depth.

src/backend/Makefile

index f1547ad4a1c927ee5bf0567f3b47d03d9233860d..a76e466beb42985a595289d17077cd28b0ecd219 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-# $PostgreSQL: pgsql/src/backend/Makefile,v 1.107 2004/12/31 19:09:37 tgl Exp $
+# $PostgreSQL: pgsql/src/backend/Makefile,v 1.108 2005/01/26 21:55:26 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -48,7 +48,7 @@ postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a
    $(DLLTOOL) --dllname $@$(X) --output-exp [email protected] --def postgres.def
    $(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) -Wl,--base-file,[email protected] [email protected] $(OBJS) $(LIBS)
    $(DLLTOOL) --dllname $@$(X) --base-file [email protected] --output-exp [email protected] --def postgres.def
-   $(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) [email protected] $(OBJS) $(LIBS)
+   $(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack,4194304 -o $@$(X) [email protected] $(OBJS) $(LIBS)
 
 postgres.def: $(OBJS)
@@ -65,7 +65,7 @@ postgres: $(OBJS) $(DLLINIT) postgres.def libpostgres.a $(WIN32RES)
    $(DLLTOOL) --dllname $@$(X) --output-exp [email protected] --def postgres.def
    $(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) -Wl,--base-file,[email protected] [email protected] $(OBJS) $(WIN32RES) $(LIBS)
    $(DLLTOOL) --dllname $@$(X) --base-file [email protected] --output-exp [email protected] --def postgres.def
-   $(CC) $(CFLAGS) $(LDFLAGS) -o $@$(X) [email protected] $(OBJS) $(WIN32RES) $(LIBS)
+   $(CC) $(CFLAGS) $(LDFLAGS) -Wl,--stack=4194304 -o $@$(X) [email protected] $(OBJS) $(WIN32RES) $(LIBS)
 
 postgres.def: $(OBJS)