Re: how to avoid repeating expensive computation in select

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to avoid repeating expensive computation in select
Дата
Msg-id 4046.1296773036@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: how to avoid repeating expensive computation in select  (Nicklas Avén <nicklas.aven@jordogskog.no>)
Список pgsql-general
Nicklas =?ISO-8859-1?Q?Av=E9n?= <nicklas.aven@jordogskog.no> writes:
> I thought the "offset 0" trick was just a dirty hack, but coming from
> you, Tom, I assume it is a robust way of doing it.

Well, I can't deny it's a dirty hack ... but it's not something we'll
break until we have a better solution.

> I also tried some of the queries we tried then, almost 2 years ago, and
> I think it seems like PostgreSQL handles this much better in 9.0. Is
> that possible?

That observation is too vague to comment on.  There are surely things
that are better in 9.0, but we haven't done anything lately that would
be likely to reduce the number of calls to a user-defined function per
se.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: how to avoid repeating expensive computation in select
Следующее
От: Mage
Дата:
Сообщение: Re: isn't "insert into where not exists" atomic?