Hard max_stack_depth / WIN32_STACK_RLIMIT PostgreSQL Windows Query - Mailing list pgsql-general

From Paul Turton
Subject Hard max_stack_depth / WIN32_STACK_RLIMIT PostgreSQL Windows Query
Date
Msg-id CWLP123MB7168AFA9E3EF973900D702F8F4662@CWLP123MB7168.GBRP123.PROD.OUTLOOK.COM
Whole thread Raw
Responses Re: Hard max_stack_depth / WIN32_STACK_RLIMIT PostgreSQL Windows Query  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general

Hi all,

 

I am on a bit of fact-finding mission for a problem we are hitting with PostgreSQL on Windows.

 

I am unable to start PostgreSQL on windows if I have the max_stack_depth limit greater than 3584kB

 

DETAIL: “max_stack_depth” must not exceed 3584kB.

 

Looking at the source code it appears that the maximum stack limit is hard coded as 4194304 bytes for Windows builds. My query is why this number was picked? Is it to do with the maximum size the Windows Kernel will allow? Could I just increase the number and re-compile, or would that break other things?

 

Paul

pgsql-general by date:

Previous
From: Matthias Apitz
Date:
Subject: Re: Filled Postgres server as Docker image
Next
From: Tom Lane
Date:
Subject: Re: Hard max_stack_depth / WIN32_STACK_RLIMIT PostgreSQL Windows Query