| От | Fabien COELHO |
|---|---|
| Тема | Re: add modulo (%) operator to pgbench |
| Дата | |
| Msg-id | alpine.DEB.2.10.1409112101580.23473@sto обсуждение |
| Ответ на | Re: add modulo (%) operator to pgbench (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: add modulo (%) operator to pgbench
|
| Список | pgsql-hackers |
>> However, that would not diminish nor change much the amount and kind of >> code necessary to add an operator or a function > > That's not really true. You can't really add abs(x) or hash(x) right > now because the current code only supports this syntax: > > \set varname operand1 [ operator operand2 ] > > There's no way to add support for a unary operator with that syntax. Hmmm. If you accept a postfix syntax, there is:-) But this is not convincing. Adding a unary function with a clean syntax indeed requires doing something with the parser. -- Fabien.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера