Re: Massive Inserts Strategies

Поиск
Список
Период
Сортировка
От Markus Schaber
Тема Re: Massive Inserts Strategies
Дата
Msg-id 442961E4.3010001@logix-tt.com
обсуждение исходный текст
Ответ на Re: Massive Inserts Strategies  (ashah <ashah@opuspro.com>)
Список pgsql-performance
Hi, ashah,

ashah wrote:
> I tried this solution, but ran into following problem.
>
> The temp_table has columns (col1, col2, col3).
>
> The original_table has columns (col0, col1, col2, col3)

> Now the extra col0 on the original_table is the unique generated ID by
> the database.

INSERT INTO original_table (col1, col2, col3) SELECT col1, col2, col3
FROM temp_table WHERE ...

HTH,
Markus




--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

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

Предыдущее
От: "Dave Dutcher"
Дата:
Сообщение: Re: simple join uses indexes, very slow
Следующее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: simple join uses indexes, very slow