• Tom Lane's avatar
    Prevent synchronous scan during GIN index build, because GIN is optimized · 10e3acb8
    Tom Lane authored
    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.
    10e3acb8
gist.c 28.5 KB