Re: Variable referencing itself in example of pgbench.sgml

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Variable referencing itself in example of pgbench.sgml
Дата
Msg-id CA+TgmoZpLEa=OmjW=m4o+mEL9u0Q5H3kxukGyoCZ_odnVRC_KA@mail.gmail.com
обсуждение исходный текст
Ответ на Variable referencing itself in example of pgbench.sgml  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Thu, Mar 19, 2015 at 7:20 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> 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.

There's no special prohibition against that.  It works fine if aid is
already set.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: proposal: searching in array function - array_position
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: ERRCODE_T_R_DEADLOCK_DETECTED