pgsql: Remove now-unnecessary thread pointer arguments in pgbench. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Remove now-unnecessary thread pointer arguments in pgbench.
Date
Msg-id E1hBnF7-0006ze-O9@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d8c0bd9fefa9c70a3f5613fba672fa92f08ea940

Modified Files
--------------
src/bin/pgbench/pgbench.c | 66 ++++++++++++++++++++++++++---------------------
1 file changed, 36 insertions(+), 30 deletions(-)


pgsql-committers by date:

Previous
From: Tomas Vondra
Date:
Subject: pgsql: Reduce overhead of pg_mcv_list (de)serialization
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Tweak docs for log_statement_sample_rate