Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT
От
Tom Lane
Тема
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT
Дата
Msg-id
6068.1425602694@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Gunnlaugur Thor Briem <gunnlaugur@gmail.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Marc Mamin <M.Mamin@intershop.de>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Gunnlaugur Thor Briem <gunnlaugur@gmail.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Kevin Grittner <kgrittn@ymail.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Jeff Janes <jeff.janes@gmail.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Jeff Janes <jeff.janes@gmail.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Gunnlaugur Thor Briem <gunnlaugur@gmail.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Gunnlaugur Thor Briem <gunnlaugur@gmail.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Jeff Janes <jeff.janes@gmail.com>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM
SELECT Marc Mamin <M.Mamin@intershop.de>
Re: EXPLAIN (no ANALYZE) taking an hour for INSERT FROM SELECT Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Tomas Vondra writes:
> On 5.3.2015 16:01, Gunnlaugur Thor Briem wrote:
>> - postgres version is 9.1.13
> The only thing I can think of is some sort of memory exhaustion,
> resulting in swapping out large amounts of memory.
I'm wondering about the issue addressed by commit fccebe421 ("Use
SnapshotDirty rather than an active snapshot to probe index endpoints").
Now, that was allegedly fixed in 9.1.13 ... but if the OP were confused
and this server were running, say, 9.1.12, that could be a viable
explanation. Another possibly viable explanation for seeing the issue
in 9.1.13 would be if I fat-fingered the back-patch somehow :-(.
In any case, I concur with your advice:
> Even if you could reproduce the problem on another machine (because of
> keeping the data internal) on a server with debug symbols and see where
> most of the time is spent (e.g. using 'perf top'), that'd be useful.
Without some more-precise idea of where the time is going, we're really
just guessing as to the cause.
regards, tom lane
В списке pgsql-performance по дате отправления
От: Tomas Vondra
Дата: