Re: join on next row

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: join on next row
Дата
Msg-id 20060620153107.GD25678@svana.org
обсуждение исходный текст
Ответ на Re: join on next row  (Sim Zacks <sim@compulab.co.il>)
Список pgsql-general
On Tue, Jun 20, 2006 at 05:13:50PM +0200, Sim Zacks wrote:
> Thank you for responding.
> I was thinking along those lines as well, though that would be an
> absolute performance killer.

I shouldn't be too bad, if you have the appropriate indexes defined.

However, it seems to me this is the kind of problem that is solved
trivially in a function. You simply store the previous row and when you
get the next one you output both.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

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

Предыдущее
От: "Lee Riquelmei"
Дата:
Сообщение: question about performance of libpq
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Help requd in writing functions in C and using in Postgres