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  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: How about to have relnamespace and relrole?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: "cancelling statement due to user request error" occurs but the transaction has committed.