]> granicus.if.org Git - postgresql/commit
Remove now-unnecessary thread pointer arguments in pgbench.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Apr 2019 21:16:00 +0000 (17:16 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Apr 2019 21:16:09 +0000 (17:16 -0400)
commitd8c0bd9fefa9c70a3f5613fba672fa92f08ea940
tree4ef9d994b248bb0593ef8fb211e714d35dfd3b9c
parentc50b3158bfd7fc8c2a0b2d2ede4415fd9859acd1
Remove now-unnecessary thread pointer arguments in pgbench.

Not required after nuking the zipfian thread-local cache.

Also add a comment about hazardous pointer punning in threadRun(),
and avoid using "thread" to refer to the threads array as a whole.

Fabien Coelho and Tom Lane, per suggestion from Alvaro Herrera

Discussion: https://postgr.es/m/alpine.DEB.2.21.1904032126060.7997@lancre
src/bin/pgbench/pgbench.c