Re: The memory usage is positively correlated with the number of partition tables when pg_get_expr is called.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zhu Yang <fairyfar(at)msn(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: The memory usage is positively correlated with the number of partition tables when pg_get_expr is called.
Date: 2025-08-20 12:09:10
Message-ID: 989438.1755691750@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Zhu Yang <fairyfar(at)msn(dot)com> writes:
> Unreasonable memory usage.

Not at all. You have a session that has accessed 100000 tables.
If you don't want to eat a lot of relcache space, rethink your
schema. (IMV, a table with hundreds or thousands of partitions
is an anti-pattern.)

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dilip Kumar 2025-08-20 13:24:41 Re: BUG #19026: ResourceOwnerForget can't find owner for invalid plancache
Previous Message Kirill Reshke 2025-08-20 11:43:32 Re: BUG #19026: ResourceOwnerForget can't find owner for invalid plancache