Hard max_stack_depth / WIN32_STACK_RLIMIT PostgreSQL Windows Query

From: Paul Turton <no-2(at)uber-force(dot)co(dot)uk>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Hard max_stack_depth / WIN32_STACK_RLIMIT PostgreSQL Windows Query
Date: 2024-01-05 12:07:14
Message-ID: CWLP123MB7168AFA9E3EF973900D702F8F4662@CWLP123MB7168.GBRP123.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2024-01-05 15:26:01 Re: Hard max_stack_depth / WIN32_STACK_RLIMIT PostgreSQL Windows Query
Previous Message Matthias Apitz 2024-01-05 11:15:49 Re: Filled Postgres server as Docker image