Dec 2024

2 commits
Set max_safe_fds whenever we create shared memory and semaphores.
17 Dec 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #1

The commit retains exactly the set_max_safe_fds() additions and accompanying comments from #1 in src/backend/bootstrap/bootstrap.c and src/backend/tcop/postgres.c. Both set_stack_base() additions are omitted because stack initialization was handled separately.

Set the stack_base_ptr in main(), not in random other places.
17 Dec 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitsignificant changesfrom patchset #2

The commit preserves the initialization changes from #2, but additionally extracts stack-depth functions and variables from src/backend/tcop/postgres.c into src/backend/utils/misc/stack_depth.c. It updates both build systems and relocates declarations into src/include/miscadmin.h, implementing the further refactoring suggested in #2.

Credits across 2 commits

Author
Tom LaneLLM2
Committer
Tom Lane2

N LLM means N of the credits come from LLM analysis, not from commit trailers.