pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergey Koposov <Sergey.Koposov@ed.ac.uk>
To: tgl@sss.pgh.pa.us <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #18909: Query creates millions of temporary files and stalls
Date: Fri, 2 May 2025 22:44:19 +0000
Message-ID: <beb051161520fc48248c2f90582eb15c6a71d239.camel@ed.ac.uk> (raw)
In-Reply-To: <2051617.1746223978@sss.pgh.pa.us>
References: <18909-e5e1b702c9441b8a@postgresql.org>
	<2051617.1746223978@sss.pgh.pa.us>

On Fri, 2025-05-02 at 18:12 -0400, Tom Lane wrote:
> 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) ?

Yes, I've just tried and that also prevents the issue.

   S
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.


view thread (17+ messages)  latest in thread

Message-ID: <beb051161520fc48248c2f90582eb15c6a71d239.camel@ed.ac.uk>
Permalink:  ../beb051161520fc48248c2f90582eb15c6a71d239.camel@ed.ac.uk/
Also on:    postgresql.org/message-id/beb051161520fc48248c2f90582eb15c6a71d239.camel@ed.ac.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: Sergey.Koposov@ed.ac.uk, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18909: Query creates millions of temporary files and stalls
  In-Reply-To: <beb051161520fc48248c2f90582eb15c6a71d239.camel@ed.ac.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox