Dennis Jenkins <dennis(dot)jenkins(at)sbcglobal(dot)net> writes:
> Is it safe for the postgres engine to fork()? Would
> the child need to close down anything immediately in
> its main() to avoid corrupting the parent?
I *think* (Tom may correct me) that as long as you don't call into the
backend code at all in the child process, and don't write to any file
descriptors other than (properly set-up) stdin and stdout, you'd be
OK. The safest thing to do would be to exec() a separate binary that
does the parsing, but that would incur an additional performace
penalty.
-Doug