Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMTVU-00067y-Mk for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2016 05:11:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bMTVT-0004fA-Ni for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2016 05:11:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bMTU7-0003AM-Kz for pgsql-hackers@postgresql.org; Mon, 11 Jul 2016 05:10:23 +0000 Received: from jiboia.ensmp.fr ([194.214.158.137]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bMTU0-00021k-9D for pgsql-hackers@postgresql.org; Mon, 11 Jul 2016 05:10:22 +0000 Received: from cri.ensmp.fr (AGrenoble-653-1-69-83.w92-129.abo.wanadoo.fr [92.129.7.83]) (authenticated bits=0) by jiboia.ensmp.fr (8.15.2/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id u6B5A7kN028988 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 11 Jul 2016 07:10:11 +0200 Date: Mon, 11 Jul 2016 07:10:07 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@sto To: Michael Paquier cc: PostgreSQL Developers Subject: Re: pgbench - minor fix for meta command only scripts In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1753940750-1468213812=:12659" X-Miltered: at jiboia.ensmp.fr with ID 57832A2F.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 57832A2F.000 from AGrenoble-653-1-69-83.w92-129.abo.wanadoo.fr/AGrenoble-653-1-69-83.w92-129.abo.wanadoo.fr/92.129.7.83/cri.ensmp.fr/ 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1753940750-1468213812=:12659 Content-Type: text/plain; format=flowed; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT Hello Michaël, > You may want to name your patches with .patch or .diff. Using .sql is > disturbing style :) Indeed! :-) > Indeed, not reporting the progress back to the client in the case of a > script with only meta commands is non-intuitive. > > This looks good to me. I'd just rewrite the comment block with > something like that, more simplified: Ok. Here is an updated version, with a better suffix and a simplified comment. Thanks, -- Fabien. --8323329-1753940750-1468213812=:12659 Content-Type: text/x-diff; name=pgbench-no-sql-fix-2.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=pgbench-no-sql-fix-2.patch ZGlmZiAtLWdpdCBhL3NyYy9iaW4vcGdiZW5jaC9wZ2JlbmNoLmMgYi9zcmMv YmluL3BnYmVuY2gvcGdiZW5jaC5jDQppbmRleCA4N2ZiMDA2Li40ZTc0NDll IDEwMDY0NA0KLS0tIGEvc3JjL2Jpbi9wZ2JlbmNoL3BnYmVuY2guYw0KKysr IGIvc3JjL2Jpbi9wZ2JlbmNoL3BnYmVuY2guYw0KQEAgLTIxNzIsOCArMjE3 MiwxMiBAQCB0b3A6DQogCQkJCXN0LT5saXN0ZW4gPSB0cnVlOw0KIAkJfQ0K IA0KLQkJLyogYWZ0ZXIgYSBtZXRhIGNvbW1hbmQsIGltbWVkaWF0ZWx5IHBy b2NlZWQgd2l0aCBuZXh0IGNvbW1hbmQgKi8NCi0JCWdvdG8gdG9wOw0KKwkJ LyoNCisJCSAqIEFmdGVyIGEgbWV0YSBjb21tYW5kIGltbWVkaWF0ZWx5IHBy b2NlZWQgd2l0aCBuZXh0IGNvbW1hbmQsDQorCQkgKiBidXQgaWYgaXQgaXMg dGhlIGxhc3QgY29tbWFuZCwganVzdCBsZWF2ZS4NCisJCSAqLw0KKwkJaWYg KGNvbW1hbmRzW3N0LT5zdGF0ZSArIDFdICE9IE5VTEwpDQorCQkJZ290byB0 b3A7DQogCX0NCiANCiAJcmV0dXJuIHRydWU7DQo= --8323329-1753940750-1468213812=:12659 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --8323329-1753940750-1468213812=:12659--