> You should try profiling the patch. You can count the invocations of the
> buffer access routines to check its all working in the right ratios.
*goes and learns how to do profile PostgreSQL*
OK, that was a good suggestion. It looks like part of my problem here
is that I didn't put the CREATE TABLE and the COPY into the same
transaction. As a result, a lot of time was spent on XLogInsert.
Modified the test case, new profiling results attached.
...Robert