Re: [HACKERS] pgbench: faster version of tpcb-like transaction

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: [HACKERS] pgbench: faster version of tpcb-like transaction
Дата
Msg-id 941569E1-F1F3-496F-981E-CA0D40069B8A@yesql.se
обсуждение исходный текст
Ответ на Re: [HACKERS] pgbench: faster version of tpcb-like transaction  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
> On 27 Aug 2017, at 08:37, Fabien COELHO <coelho@cri.ensmp.fr> wrote:
>
>
> About the patch:
>
> I'm generally in favor of providing more options to pgbench, especially if it can give optimization ideas to the
performanceconscious user. 
>
> I think that the name should be "tpcb-like-plfunc": the script does not implement tpcb per spec, and such a function
couldbe written in another language with some performance benefit, or not. 
>
> Maybe that mean to relax the prefix condition to "take the first matching name" when prefix are used.
>
> If you are reimplementing the transaction anyway, you could consider using UPDATE RETURNING instead of SELECT to get
thebalance. On the other hand the doc says that the "steps" are put in a PL function, so maybe it should reflect the
originalscript. 
>
> I'm surprised by:
>
>  "select * from pgbench_transaction(:aid, :bid, :tid, :delta);\n"
>
> Why not simply:
>
>    "select pgbench_transaction(:aid, :bid, :tid, :delta);\n"
>
> I would suggest to use a more precise function name, in case other functions are thought of. Maybe
"pgbench_tpcb_like_plfunc".
>
> I would suggest to indent better the PL/function and put keywords and types in capital, and add explicitely the
propertiesof the function (eg STRICT, VOLATILE?). 
>
> There is a spurious space at the end of the executeStatement call line.
>
> The patch potentially interacts with other patches in the long and slow queue...
>
> As usual with pgbench there are no regression tests.

This patch has been Waiting for author during the commitfest without updates,
moving to Returned with feedback.

cheers ./daniel



--
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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] pg_ctl kill support for KILL signal was Re:[COMMITTERS] pgsql: Add test for postmaster crash restarts.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] pg_ctl kill support for KILL signal was Re: [COMMITTERS] pgsql: Add test for postmaster crash restarts.