pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Marina Polyakova <m.polyakova@postgrespro.ru>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: kuroda.hayato@fujitsu.com, David Rowley <dgrowleyml@gmail.com>
Subject: Re: pgbench: option delaying queries till connections establishment?
Date: Sat, 13 Mar 2021 09:08:31 +0100 (CET)
Message-ID: <alpine.DEB.2.22.394.2103130847060.771005@pseudo> (raw)
In-Reply-To: <CA+hUKGKrbv8RcfVenoXA31ZmCa-f9qDaKfVg5pFUCmHeecdWsQ@mail.gmail.com>
References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de>
	<0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru>
	<alpine.DEB.2.22.394.2011141609050.1129903@pseudo>
	<CA+hUKG+it0+GZEZdP55fKQBuKZmu4OfXfW=qZFh7JgwVccMxCw@mail.gmail.com>
	<alpine.DEB.2.22.394.2101012114050.3573723@pseudo>
	<CA+hUKG+q_TWQgrvtfHxJoWyr1DVz_WhQBr3LjfiJMKE=V+qDFw@mail.gmail.com>
	<alpine.DEB.2.22.394.2101022148070.3573723@pseudo>
	<CA+hUKG+X+vBSJAsSLYNRVbNLXVoTC7UjaiD09ij3wY1-qakMTw@mail.gmail.com>
	<CA+hUKGJgFZmchtseDs7B9ptxWU_aHZr2KU4dprga_Rbg-TSmnw@mail.gmail.com>
	<alpine.DEB.2.22.394.2101300949420.11664@pseudo>
	<CA+hUKG+VSOYLmPS5yE5jzWV_FxC=4ZnqsMF6TJ2ATVzuROewJg@mail.gmail.com>
	<CA+hUKGK_Ggd-Via6Y3swER_wqQwWiWGhUtN5U=a5hC3be1NN0g@mail.gmail.com>
	<CA+hUKG+nbQC9A38Z5OrYdoD1rsJbrxJN5Z8ptiRkqWeawPn3Ag@mail.gmail.com>
	<CA+hUKGLjPixrEjvsHggGL_huQ9Jg0bsjp7zpztEG=_DSRGrs+Q@mail.gmail.com>
	<CA+hUKGKrbv8RcfVenoXA31ZmCa-f9qDaKfVg5pFUCmHeecdWsQ@mail.gmail.com>


Hello Thomas,

>> David Rowley kindly tested this for me on Windows and told me how to
>> fix one of the macros that had incorrect error checking on that OS.
>> So here's a new version.  I'm planning to commit 0001 and 0002 soon,
>> if there are no objections.  0003 needs some more review.
>
> I made a few mostly cosmetic changes, pgindented and pushed all these patches.

Thanks a lot for pushing all that, and fixing issues raised by buildfarm 
animals pretty unexpected and strange failures…

I must say that I'm not a big fan of the macro-based all-in-capitals API 
for threads because it exposes some platform specific uglyness (eg 
THREAD_FUNC_CC) and it does not look much like clean C code when used. I 
liked the previous partial pthread implementation better, even if it was 
not the real thing, obviously.

ISTM that with the current approach threads are always used on Windows, 
i.e. pgbench does not comply to "ENABLE_THREAD_SAFETY" configuration on 
that platform. Not sure whether this is an issue that need to be 
addressed, though.

-- 
Fabien.

view thread (54+ messages)  latest in thread

Message-ID: <alpine.DEB.2.22.394.2103130847060.771005@pseudo>
Permalink:  ../alpine.DEB.2.22.394.2103130847060.771005@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.22.394.2103130847060.771005@pseudo

 · 

reply

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-hackers@postgresql.org
  Cc: coelho@cri.ensmp.fr, thomas.munro@gmail.com, m.polyakova@postgrespro.ru, dgrowleyml@gmail.com
  Subject: Re: pgbench: option delaying queries till connections establishment?
  In-Reply-To: <alpine.DEB.2.22.394.2103130847060.771005@pseudo>
  References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru> <alpine.DEB.2.22.394.2011141609050.1129903@pseudo> <CA+hUKG+it0+GZEZdP55fKQBuKZmu4OfXfW=qZFh7JgwVccMxCw@mail.gmail.com> <alpine.DEB.2.22.394.2101012114050.3573723@pseudo> <CA+hUKG+q_TWQgrvtfHxJoWyr1DVz_WhQBr3LjfiJMKE=V+qDFw@mail.gmail.com> <alpine.DEB.2.22.394.2101022148070.3573723@pseudo> <CA+hUKG+X+vBSJAsSLYNRVbNLXVoTC7UjaiD09ij3wY1-qakMTw@mail.gmail.com> <CA+hUKGJgFZmchtseDs7B9ptxWU_aHZr2KU4dprga_Rbg-TSmnw@mail.gmail.com> <alpine.DEB.2.22.394.2101300949420.11664@pseudo> <CA+hUKG+VSOYLmPS5yE5jzWV_FxC=4ZnqsMF6TJ2ATVzuROewJg@mail.gmail.com> <CA+hUKGK_Ggd-Via6Y3swER_wqQwWiWGhUtN5U=a5hC3be1NN0g@mail.gmail.com> <CA+hUKG+nbQC9A38Z5OrYdoD1rsJbrxJN5Z8ptiRkqWeawPn3Ag@mail.gmail.com> <CA+hUKGLjPixrEjvsHggGL_huQ9Jg0bsjp7zpztEG=_DSRGrs+Q@mail.gmail.com> <CA+hUKGKrbv8RcfVenoXA31ZmCa-f9qDaKfVg5pFUCmHeecdWsQ@mail.gmail.com> <alpine.DEB.2.22.394.2103130847060.771005@pseudo>

* 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