Prevent synchronous scan during GIN index build, because GIN is optimized

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 10e3acb8e7bd3298ba2b942f86c18f5ba2e142a8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-11-13T17:42:10Z
Releases: 8.4.0
Prevent synchronous scan during GIN index build, because GIN is optimized
for inserting tuples in increasing TID order.  It's not clear whether this
fully explains Ivan Sergio Borgonovo's complaint, but simple testing
confirms that a scan that doesn't start at block 0 can slow GIN build by
a factor of three or four.

Backpatch to 8.3.  Sync scan didn't exist before that.

Files