Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzSIt-00039J-Ta for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jan 2021 22:38:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzSIs-0007VN-FN for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jan 2021 22:38:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzSIs-0007VG-8O for pgsql-hackers@lists.postgresql.org; Tue, 12 Jan 2021 22:38:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzSIl-00085O-HQ for pgsql-hackers@lists.postgresql.org; Tue, 12 Jan 2021 22:38:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10CMbuYY1236016; Tue, 12 Jan 2021 17:37:57 -0500 From: Tom Lane To: Fabien COELHO cc: Anastasia Lubennikova , PostgreSQL Developers , David Rowley , Jaime Soler Subject: Re: pgbench and timestamps (bounced) In-reply-to: References: <1720048.1599525071@sss.pgh.pa.us> <6c6af173-85b9-f0b3-4764-b0df415d2736@postgrespro.ru> Comments: In-reply-to Fabien COELHO message dated "Fri, 27 Nov 2020 00:08:26 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1236014.1610491076.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Jan 2021 17:37:56 -0500 Message-ID: <1236015.1610491076@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Fabien COELHO writes: >> Hi, this entry is "Waiting on Author" and the thread was inactive for a= = >> while. I see this discussion still has some open questions. Are you = >> going to continue working on it, or should I mark it as "returned with = >> feedback" until a better time? > IMHO the proposed fix is reasonable and addresses the issue. > I have responded to Tom's remarks about it, and it is waiting for his = > answer to my counter arguments. So ISTM that the patch is currently stil= l = > waiting for some feedback. It looks like my unhappiness with injecting a pthread dependency into pgbench is going to be overtaken by events in the "option delaying queries" thread [1]. However, by the same token there are some conflicts between the two patchsets, and also I prefer the other thread's approach to portability (i.e. do it honestly, not with a private portability layer in pgbench.c). So I'm inclined to put the parts of this patch that require pthreads on hold till that lands. What remains that we could do now, and perhaps back-patch, is point (2) i.e. disallow digits as the first character of a pgbench variable name. That would be enough to "solve" the original bug report, and it does seem like it could be back-patched, while we're certainly not going to risk back-patching anything as portability-fraught as introducing mutexes. regards, tom lane [1] https://www.postgresql.org/message-id/flat/20200227180100.zyvjwzcpiokf= sqm2%40alap3.anarazel.de