Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1barT3-0001nm-U5 for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Aug 2016 21:36:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1barT3-0003Ek-Gk for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Aug 2016 21:36:45 +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 1barRg-0001fg-7m for pgsql-hackers@postgresql.org; Fri, 19 Aug 2016 21:35:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1barRa-0004QY-Ph for pgsql-hackers@postgresql.org; Fri, 19 Aug 2016 21:35:17 +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 u7JLZAWr017154; Fri, 19 Aug 2016 17:35:10 -0400 From: Tom Lane To: Fabien COELHO cc: PostgreSQL Developers Subject: Re: pgbench - allow empty queries In-reply-to: References: Comments: In-reply-to Fabien COELHO message dated "Sat, 09 Jul 2016 09:27:41 +0200" Date: Fri, 19 Aug 2016 17:35:10 -0400 Message-ID: <17153.1471642510@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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: > I wanted to test overheads on an empty query, but pgbench does not allow > it. I do not see why not. I'm inclined to think this was probably a good thing before 9.6, as a guard against accidentally writing an empty query into a script and thus executing more queries than you meant to. However, with the new end-of-command definition I think it's impossible to write an empty query without an explicit ";", so it seems fine now. Pushed. 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