Re: add modulo (%) operator to pgbench

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: add modulo (%) operator to pgbench
Дата
Msg-id alpine.DEB.2.10.1408061633200.28413@sto
обсуждение исходный текст
Ответ на Re: add modulo (%) operator to pgbench  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: add modulo (%) operator to pgbench  (Mitsumasa KONDO <kondo.mitsumasa@gmail.com>)
Список pgsql-hackers
> Three different modulo operators seems like a lot for a language that
> doesn't even have a real expression syntax, but I'll yield to whatever
> the consensus is on this one.

Here is a third simpler patch which only implements the Knuth's modulo, 
where the remainder has the same sign as the divisor.

I would prefer this version 3 (one simple modulo based on Knuth 
definition) or if there is a problem version 2 (all 3 modulos). Version 1 
which provides a modulo compatible with C & SQL is really useless to me.

-- 
Fabien.

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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: Enhancing pgbench parameter checking
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Scaling shared buffer eviction