Re: BUG #18909: Query creates millions of temporary files and stalls

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: skoposov@ed.ac.uk
Cc: pgsql-bugs@lists.postgresql.org
Date: 2025-05-02T22:12:58Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I have a query: ...
> that I ran (from python client), and after it didn't finish in ~ an hour, i
> started to investigate, finding that the pgsql_tmp folder had 15 million
> temporary files from that query.

Does it behave any better if you disable parallelism
(set max_parallel_workers_per_gather = 0) ?

			regards, tom lane