Re: One PG process eating more than 40GB of RAM and getting killed by OOM

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jean-Christophe Boggio <postgresql(at)thefreecat(dot)org>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: One PG process eating more than 40GB of RAM and getting killed by OOM
Date: 2023-10-13 15:02:04
Message-ID: 1528962.1697209324@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jean-Christophe Boggio <postgresql(at)thefreecat(dot)org> writes:
> You can find the corresponding logs attached.

Your query seems to be creating TupleSort contexts and then leaking
them, which is surely a bug. Can you make a self-contained test
case that reproduces this?

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jeff Janes 2023-10-13 16:48:07 Re: One PG process eating more than 40GB of RAM and getting killed by OOM
Previous Message Rajesh Kumar 2023-10-13 14:57:32 Re: Locks analyze