Re: [HACKERS] pgbench - use enum for meta commands

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: [HACKERS] pgbench - use enum for meta commands
Дата
Msg-id alpine.DEB.2.20.1711021744320.11757@lancre
обсуждение исходный текст
Ответ на Re: [HACKERS] pgbench - use enum for meta commands  (Aleksandr Parfenov <a.parfenov@postgrespro.ru>)
Ответы Re: [HACKERS] pgbench - use enum for meta commands
Список pgsql-hackers
> The only thing I'm not quite sure about is a comment "which meta command 
> ...". Maybe it's better to write it without question word, something 
> like "meta command identifier..."?

Ok. I agree.

Updated version attached. I also added a const on a function parameter.

Just a note about the motivation: I want to add the same "\if" syntax 
added to psql, but it requires to look at the meta command in a number of 
places to manage the automaton status, and the strcmp solution looked both 
ugly and inefficient. So this small refactoring is just a preliminary to 
the "\if" patch, some day, after this one get committed, if it gets 
committed.

> The new status of this patch is: Ready for Committer

Thanks for the review.

-- 
Fabien.


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

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] Removing wal_keep_segments as default configuration in PostgresNode.pm
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: [HACKERS] pgbench - use enum for meta commands