From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Subject: Re: pgbench - allow empty queries
Date: Fri, 19 Aug 2016 17:35:10 -0400
Message-ID: <17153.1471642510@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.DEB.2.20.1607090922170.3412@sto>
References: <alpine.DEB.2.20.1607090922170.3412@sto>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Fabien COELHO <coelho@cri.ensmp.fr> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, coelho@cri.ensmp.fr
Subject: Re: pgbench - allow empty queries
In-Reply-To: <17153.1471642510@sss.pgh.pa.us>
References: <alpine.DEB.2.20.1607090922170.3412@sto> <17153.1471642510@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox