"Igor Lasic" <igor(at)a-bb(dot)net> writes:
> We have an application running C-API stored procedures. After running for a
> while postgres crashes with:
> If I increase shared memory application runs longer but eventually crashes.
The odds are incredibly high that this means there's a memory-stomping
bug in your C stored procedures. You might try testing them in a build
with --enable-debug + --enable-cassert, which will enable some sanity
checking code in the memory context support.
regards, tom lane