Re: crosstab

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: crosstab
Дата
Msg-id 200503012047.08799.josh@agliodbs.com
обсуждение исходный текст
Ответ на crosstab  (Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>)
Список pgsql-sql
THeo,

> I have tried using unions or subselects however the table is quite large
> and it takes far too long to run. The most efficient way would be to create
> a stored proc that uses a cursor to loop through the table transforming the
> data into the new table structure. However I would appreciate your feeback
> before writing this procedure?

A proc won't run any faster ... much slower, in fact.    Unless you mean that 
you want to use it to correct the actual table structure, which is what you 
should be doing?

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Theo Galanakis
Дата:
Сообщение: crosstab
Следующее
От: Steffen Boehme
Дата:
Сообщение: Performance of Views