The attempt of making changes to max_stack_depth using select set_config('max_stack_depth', '512MB', false);
because of the error shown in postgresql log:
DETAIL: "max_stack_depth" must not exceed 7680kB.
HINT: Increase the platform's stack depth limit via "ulimit -s" or local equivalent.
actually, the below line exists in limits.conf. Have tried updating postgresql process using prlimit
and even reboot the server(OS: Ubuntu). It still reports the same error.
* soft stack 524288
if switch to the user postgres and verify the stack size with ulimit -s
it is already set to 512MB.
This shows there is no ulimit -s
to change the stack size under /etc.
$ sudo grep -r ulimit /etc/*
/etc/init.d/lxd: ulimit -n 65536
/etc/vmware-tools/vm-support:runcmd "/tmp/ulimit-a.txt" ulimit -a
Not sure why postgresql still not seeing this change?
ulimit -s
and see if the problme persists? – jjanes Feb 26 '19 at 15:34