in reply to Parllel Processing Database Query

I think that your problem is that you can't share a single DB connection between forked processes. Try opening the connection after the fork.

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."