Andrew Dunstan <and...@dunslane.net> writes: > I think you should have it use pthreads if available, or Windows threads > there, or fork() elsewhere.
Hmm, but how will you communicate stats back from the sub-processes? pg_restore doesn't need anything more than a success/failure result from its child processes, but I think pgbench will want more. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers