Re: PG 7.2b4 bug?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: PG 7.2b4 bug?
Дата
Msg-id 20011217122548.T53003-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на PG 7.2b4 bug?  (Don Baccus <dhogaza@pacifier.com>)
Ответы Re: PG 7.2b4 bug?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, 17 Dec 2001, Don Baccus wrote:

> insert into data
> select test_seq.nextval
> from multiple_rows;

I'm not sure that's wrong though with that example. test_seq.nextval in
the select list means to PostgreSQL a join with test_seq which is a view
with one row and I'd expect it to only evaluate that one row once, if
it did it more than once in the past, I'd say it was buggy.

However, I'd think:
"select (select nextval from test_seq) from multiple_rows;"
should give you different values and doesn't, although
"select (select nextval from test_seq where i IS NULL or i IS NOT NULL)from multiple_rows;" does give you different
values.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PG 7.2b4 bug?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Explicit config patch 7.2B4