Re: Function is called multiple times in subselect

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function is called multiple times in subselect
Дата
Msg-id 4690.1079064141@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Function is called multiple times in subselect  (Chris Campbell <chris@bignerdranch.com>)
Ответы Re: Function is called multiple times in subselect  ("Alex J. Avriette" <alex@posixnap.net>)
Список pgsql-bugs
Chris Campbell <chris@bignerdranch.com> writes:
> I don't think this should be happening (PostgreSQL 7.4.1).

Sorry, this isn't a bug.  Flattening the subquery is generally desirable
behavior.

I think the easiest way to force the subquery not to be flattened is to
insert a LIMIT or OFFSET clause, viz

    SELECT ... FROM (SELECT ... OFFSET 0) query;

            regards, tom lane

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

Предыдущее
От: Chris Campbell
Дата:
Сообщение: Function is called multiple times in subselect
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #1096: pg_restore cannot restore large objects with