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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove now-unnecessary thread pointer arguments in pgbench.
Date: 2019-04-03 21:16:21
Message-ID: E1hBnF7-0006ze-O9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2019-04-03 21:59:22 pgsql: Log all statements from a sample of transactions
Previous Message Tomas Vondra 2019-04-03 19:23:53 pgsql: Reduce overhead of pg_mcv_list (de)serialization