Re: MERGE: performance advices
От
Richard Broersma
Тема
Re: MERGE: performance advices
Дата
Msg-id
396486430809020538l3728ba9bm1d47674010ecbc31@mail.gmail.com
Ответ на
MERGE: performance advices (Ivan Sergio Borgonovo)
Список
Дерево обсуждения
MERGE: performance advices Ivan Sergio Borgonovo <mail@webthatworks.it>
Re: MERGE: performance advices "Richard Broersma" <richard.broersma@gmail.com>
Re: MERGE: performance advices Steve Clark <sclark@netwolves.com>
Re: MERGE: performance advices "Richard Broersma" <richard.broersma@gmail.com>
Re: MERGE: performance advices Tom Lane <tgl@sss.pgh.pa.us>
Re: MERGE: performance advices "Richard Broersma" <richard.broersma@gmail.com>
Re: MERGE: performance advices Steve Clark <sclark@netwolves.com>
Re: MERGE: performance advices Steve Clark <sclark@netwolves.com>
Re: MERGE: performance advices "Richard Broersma" <richard.broersma@gmail.com>
Re: MERGE: performance advices Steve Clark <sclark@netwolves.com>
Re: MERGE: performance advices Gregory Stark <stark@enterprisedb.com>
On Tue, Sep 2, 2008 at 4:19 AM, Ivan Sergio Borgonovo wrote: > insert into d (pk, c1, c2, ...) select pk, c1, c2, c3 from s > where s.pk not in (select pk from d); This insert statement might be faster: INSERT INTO d (pk, c1, c2, ... ) SELECT pk, c1, c2, ... FROM s LEFT JOIN d ON s.pk = d.pk WHERE d.pk IS NULL; -- Regards, Richard Broersma Jr. Visit the Los Angeles PostgreSQL Users Group (LAPUG) http://pugs.postgresql.org/lapug
В списке pgsql-general по дате отправления