Re: Temp table or normal table for performance?

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: Temp table or normal table for performance?
Дата
Msg-id 20090820105919.GW5407@samason.me.uk
обсуждение исходный текст
Ответ на Re: Temp table or normal table for performance?  (Stephen Cook <sclists@gmail.com>)
Список pgsql-general
On Wed, Aug 19, 2009 at 08:10:14PM -0400, Stephen Cook wrote:
> I've decided on some type of table storage because basically I'm
> combining information from several different tables (some of which need
> to recursively get other rows) and massaging it and sorting it in ways
> far too convoluted to use a single query with UNION and ORDER BY, and
> then returning the results.

Sounds like you want a temp table to keep things in; you can add an ON
COMMIT DROP which should help keep things tidy.  If you're on 8.4 the
WITH clause may make this use case easier.

--
  Sam  http://samason.me.uk/

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

Предыдущее
От: Wolfgang Keller
Дата:
Сообщение: Generate LaTeX doc from PostgreSQL (autodoc)?
Следующее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Re: Generating random unique alphanumeric IDs