Variable referencing itself in example of pgbench.sgml

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Variable referencing itself in example of pgbench.sgml
Дата
Msg-id CAB7nPqQ8ARJSNyQuqrYKDMPqdLmsLidF9dK8==UoWsnEHiAHNA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Variable referencing itself in example of pgbench.sgml
Список pgsql-hackers
Hi all,

While looking at some recent commit related to pgbench I noticed this
example in the docs:
\set aid (1021 * :aid) % (100000 * :scale) + 1
This actually would fail because aid references itself.

Attached is a patch to change this example as follows:
-\set aid (1021 * :aid) % (100000 * :scale) + 1
+\set aid (1021 * :ntellers) % (100000 * :scale) + 1
Regards,
--
Michael

Вложения

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