Re: Nested query performance issue

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Nested query performance issue
Дата
Msg-id b42b73150904140646o2632f0eeu379cd1653afae9f3@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Nested query performance issue  (Віталій Тимчишин <tivv00@gmail.com>)
Список pgsql-performance
2009/4/9 Віталій Тимчишин <tivv00@gmail.com>:
> OK, got to my postgres. Here you are:
>
> create or replace function explode_array(in_array anyarray) returns setof
> anyelement as
> $$
>     select ($1)[s] from generate_series(1,array_upper($1, 1)) as s;
> $$
> language sql immutable;
>

in 8.4, this will be replaced by the built in 'unnest'.  Also we have array_agg.

merlin

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

Предыдущее
От: Glenn Maynard
Дата:
Сообщение: Re: Nested query performance issue
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: INSERT times - same storage space but more fields -> much slower inserts