pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Zhu Yang <fairyfar@msn.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: The memory usage is positively correlated with the number of partition tables when pg_get_expr is called.
Date: Wed, 20 Aug 2025 08:09:10 -0400
Message-ID: <989438.1755691750@sss.pgh.pa.us> (raw)
In-Reply-To: <MEWP300MB002272E8DEAD2FCFA14A3518D533A@MEWP300MB0022.AUSP300.PROD.OUTLOOK.COM>
References: <MEWP300MB002272E8DEAD2FCFA14A3518D533A@MEWP300MB0022.AUSP300.PROD.OUTLOOK.COM>

Zhu Yang <fairyfar@msn.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





view thread (2+ messages)

Message-ID: <989438.1755691750@sss.pgh.pa.us>
Permalink:  ../989438.1755691750@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/989438.1755691750@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, fairyfar@msn.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: The memory usage is positively correlated with the number of partition tables when pg_get_expr is called.
  In-Reply-To: <989438.1755691750@sss.pgh.pa.us>

* 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