Re: [GENERAL] Query Using Massive Temp Space - Mailing list pgsql-general

From legrand legrand
Subject Re: [GENERAL] Query Using Massive Temp Space
Date
Msg-id 1511176582453-0.post@n3.nabble.com
Whole thread Raw
In response to Re: [GENERAL] Query Using Massive Temp Space  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-general
Hi, 
there are many Hash and Merge joins that may generate a lot of temp space,
it could also be a problem of forgotten column in the join.

Could you also provide indexes definitions (pk, uk and others)
with the EXPLAIN (ANALYZE BUFFERS)

(you can limit the scope of the query to help it to finish by limiting the
number of lines from candidates  by
...  
*FROM match_candidate_address WHERE account_id NOT IN (:exclude_ids)
limit 100
*
)

Regards
PAscal




--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Ronen Nofar
Date:
Subject: [GENERAL] Registering Event Log on Windows
Next
From: Stephen Frost
Date:
Subject: [GENERAL] Migration to pglister - Before