Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bN4ni-0002n7-4q for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jul 2016 21:01:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bN4ng-0005Ep-CM for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Jul 2016 21:01:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bN4mE-0003c7-Lw for pgsql-hackers@postgresql.org; Tue, 12 Jul 2016 20:59:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bN4mA-00039y-2H for pgsql-hackers@postgresql.org; Tue, 12 Jul 2016 20:59:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u6CKxNeD006017; Tue, 12 Jul 2016 16:59:24 -0400 From: Tom Lane To: Fabien COELHO cc: Michael Paquier , PostgreSQL Developers Subject: Re: pgbench - minor fix for meta command only scripts In-reply-to: References: Comments: In-reply-to Fabien COELHO message dated "Mon, 11 Jul 2016 07:10:07 +0200" Date: Tue, 12 Jul 2016 16:59:23 -0400 Message-ID: <6016.1468357163@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Fabien COELHO writes: > Ok. Here is an updated version, with a better suffix and a simplified > comment. Doesn't this break the handling of latency calculations, or at least make the results completely different for the last metacommand than what they would be for a non-last command? It looks like it needs to loop back so that the latency calculation is completed for the metacommand before it can exit. Seems to me it would probably make more sense to fall out at the end of the "transaction finished" if-block, around line 1923 in HEAD. (The code structure in here seems like a complete mess to me, but probably now is not the time to refactor it.) regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers