Re: pgbench - allow empty queries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgbench - allow empty queries
Дата
Msg-id 17153.1471642510@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgbench - allow empty queries  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Show dropped users' backends in pg_stat_activity
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgbench - minor doc improvements