Re: Bulk loading/merging

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Bulk loading/merging
Дата
Msg-id 20060531010922.GC59464@pervasive.com
обсуждение исходный текст
Ответ на Bulk loading/merging  ("Worky Workerson" <worky.workerson@gmail.com>)
Ответы Re: Bulk loading/merging  ("Michael Artz" <mlartz@gmail.com>)
Список pgsql-performance
Your best bet is to do this as a single, bulk operation if possible.
That way you can simply do an UPDATE ... WHERE EXISTS followed by an
INSERT ... SELECT ... WHERE NOT EXISTS.

On Fri, May 26, 2006 at 02:48:20PM -0400, Worky Workerson wrote:
> I've set up something similar the 'recommended' way to merge data into
> the DB, i.e.
>
> http://www.postgresql.org/docs/current/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
>
> however I did it with a trigger on insert, i.e. (not my schema :) ):
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Why the 8.1 plan is worst than 7.4?
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Query performance