postgresql - Postgres UDF functions C using fork -


i have developed 1 c udf postgres. udf needs invoke fork , run function ( not invoke exec ) getting following error

log:  failed find proc 0x7fb0715b95b0 in procarray fatal:  connection limit exceeded non-superusers 

i looked @ discussion @ following link , looks there no conclusion. can let me know how can run such udf without causing above problem?

http://grokbase.com/t/postgresql/pgsql-general/108aqsaky6/fork-and-dynamically-loaded-c-functions