Re: [HACKERS] pgbench - allow empty queries

2016-08-19 Thread Tom Lane
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


[HACKERS] pgbench - allow empty queries

2016-07-09 Thread Fabien COELHO


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.

pgbench-empty-query-1.sql
Description: application/sql


empty.sql
Description: application/sql

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers