From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove now-unnecessary thread pointer arguments in pgbench.
Date: Wed, 03 Apr 2019 21:16:21 +0000
Message-ID: <E1hBnF7-0006ze-O9@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Remove now-unnecessary thread pointer arguments in pgbench.
In-Reply-To: <E1hBnF7-0006ze-O9@gemulon.postgresql.org>
References: <E1hBnF7-0006ze-O9@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox