"Ana Carolina Brito de Almeida" <anacrl@ig.com.br> writes:
> I'm trying test a version extended of Postgresql, but when I run a command
> after 9 times, I receive this message in psql:
> ***stack smashing detected***
> And Log said that postgres terminated with signal 6.
> I increased buffer to 120MB and the linux buffer (shmmax) to 2GB.
> What value can I put to max_connections?
You're thinking in the wrong terms entirely. This is a bug that you
need to find/fix in whatever your extension is. I'd look for things
like overrunning a fixed-size array allocated as a local variable.
regards, tom lane