aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-06-28 22:11:12 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-06-28 22:11:12 -0400
commit08aed6604de2e6a9f4d499818d7c641cbf5eb9f7 (patch)
tree72f79af03788563479aa291f2a301b284951f11e /contrib/postgres_fdw/postgres_fdw.c
parent1ae8536545b7ea486dbe15247e6dd817ee211297 (diff)
downloadpostgresql-08aed6604de2e6a9f4d499818d7c641cbf5eb9f7.tar.gz
postgresql-08aed6604de2e6a9f4d499818d7c641cbf5eb9f7.zip
Eat XIDs more efficiently in recovery TAP test.
The point of this loop is to insert 1000 rows into the test table and consume 1000 XIDs. I can't see any good reason why it's useful to launch 1000 psqls and 1000 backend processes to accomplish that. Pushing the looping into a plpgsql DO block shaves about 10 seconds off the runtime of the src/test/recovery TAP tests on my machine; that's over 10% of the runtime of that test suite. It is, in fact, sufficiently more efficient that we now demonstrably need wait_slot_xmins() afterwards, or the slaves' xmins may not have moved yet.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions