Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLmgC-0007er-91 for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Jul 2016 07:28:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bLmgA-0008EJ-MP for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Jul 2016 07:27:58 +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 1bLmg8-0008DW-Ij for pgsql-hackers@postgresql.org; Sat, 09 Jul 2016 07:27:56 +0000 Received: from jiboia.ensmp.fr ([194.214.158.137]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLmfx-00054m-8m for pgsql-hackers@postgresql.org; Sat, 09 Jul 2016 07:27:53 +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 u697RfDZ002983 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 9 Jul 2016 09:27:43 +0200 Date: Sat, 9 Jul 2016 09:27:41 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@sto Reply-To: Fabien COELHO To: PostgreSQL Developers Subject: pgbench - allow empty queries Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-113137072-1468049263=:3412" X-Miltered: at jiboia.ensmp.fr with ID 5780A76D.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: 5780A76D.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-113137072-1468049263=:3412 Content-Type: text/plain; format=flowed; charset=US-ASCII I wanted to test overheads on an empty query, but pgbench does not allow it. I do not see why not. The attached very minor patch allows empty queries. -- Fabien. --8323329-113137072-1468049263=:3412 Content-Type: application/x-sql; name=pgbench-empty-query-1.sql Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=pgbench-empty-query-1.sql ZGlmZiAtLWdpdCBhL3NyYy9iaW4vcGdiZW5jaC9wZ2JlbmNoLmMgYi9zcmMv YmluL3BnYmVuY2gvcGdiZW5jaC5jCmluZGV4IDg3ZmIwMDYuLmVhODQ5MDkg MTAwNjQ0Ci0tLSBhL3NyYy9iaW4vcGdiZW5jaC9wZ2JlbmNoLmMKKysrIGIv c3JjL2Jpbi9wZ2JlbmNoL3BnYmVuY2guYwpAQCAtMTg5OCw2ICsxODk4LDcg QEAgdG9wOgogCQkJewogCQkJCWNhc2UgUEdSRVNfQ09NTUFORF9PSzoKIAkJ CQljYXNlIFBHUkVTX1RVUExFU19PSzoKKwkJCQljYXNlIFBHUkVTX0VNUFRZ X1FVRVJZOiAvKiBtYXkgYmUgdXNlZCB0byB0ZXN0IG92ZXJoZWFkcyAqLwog CQkJCQlicmVhazsJCS8qIE9LICovCiAJCQkJZGVmYXVsdDoKIAkJCQkJZnBy aW50ZihzdGRlcnIsICJjbGllbnQgJWQgYWJvcnRlZCBpbiBzdGF0ZSAlZDog JXMiLAo= --8323329-113137072-1468049263=:3412 Content-Type: application/x-sql; name=empty.sql Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=empty.sql Owo= --8323329-113137072-1468049263=:3412 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-113137072-1468049263=:3412--