Josh Berkus <josh@agliodbs.com> writes:
> Maybe I'm not an idiot (really!) even with almost 2GB of maintenance_mem, PG
> still writes to pgsql_tmp no faster than 2MB/s. I think there may be an
> artificial bottleneck there. Question is, PostgreSQL, OS or hardware?
AFAIR that's just fwrite() ...
regards, tom lane