pgbench: introduce a new automatic variable 'client_number'

Поиск
Список
Период
Сортировка
От Gurjeet Singh
Тема pgbench: introduce a new automatic variable 'client_number'
Дата
Msg-id CABwTF4U2+jUdSVEWGdjbPsTsgJbfjL5n0nwdxPWXb=ONMg3hSA@mail.gmail.com
обсуждение исходный текст
Ответы Re: pgbench: introduce a new automatic variable 'client_number'  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-hackers
Please find attached a patch for pgbench that introduces a new auto-variable 'client_number'. Following in the footsteps of 'scale' auto-variable, this is not declared if the user has specified this variable using -D switch.

Since 'clientid' is a very common name a user can use for their own script's variable, I chose to call this auto-variable client_number; just to avoid conflicts.

This variable can come in handy when you want to use a different expression in a query depending on which client is executing it. An example custom transaction is attached, where the UPDATE statement from any given client always updates the same logical row.

Best regards,
--
Gurjeet Singh

http://gurjeet.singh.im/

EnterpriseDB Inc.
Вложения

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

Предыдущее
От: 李海龙
Дата:
Сообщение: Re: I s this a bug of spgist index in a heavy write condition?
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Support for REINDEX CONCURRENTLY