]> granicus.if.org Git - postgresql/commit
Speed up "brin" regression test a little bit.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Feb 2017 21:34:11 +0000 (16:34 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Feb 2017 21:34:37 +0000 (16:34 -0500)
commit242066cc8e587ccbe5e1cf38c4f085f080dcd5e0
treece90f82b50f8ef716a5cf92e9c8af9678c3a1899
parentac8eb972f268c787bfe7579b1747c3866fced5a9
Speed up "brin" regression test a little bit.

In the large DO block, collect row TIDs into array variables instead of
creating and dropping a pile of temporary tables.  In a normal build,
this reduces the brin test script's runtime from about 1.1 sec to 0.4 sec
on my workstation.  That's not all that exciting perhaps, but in a
CLOBBER_CACHE_ALWAYS test build, the runtime drops from 20 min to 17 min,
which is a little more useful.  In combination with some other changes
I plan to propose, this will help provide a noticeable reduction in
cycle time for CLOBBER_CACHE_ALWAYS buildfarm critters.
src/test/regress/expected/brin.out
src/test/regress/sql/brin.sql