pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: James Pang (chaolpan) <chaolpan@cisco.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: huge memory of Postgresql backend process
Date: Thu, 08 Sep 2022 09:47:57 -0400
Message-ID: <3950547.1662644877@sss.pgh.pa.us> (raw)
In-Reply-To: <PH0PR11MB51911F681F37F55A92DA4C01D6409@PH0PR11MB5191.namprd11.prod.outlook.com>
References: <PH0PR11MB51911F681F37F55A92DA4C01D6409@PH0PR11MB5191.namprd11.prod.outlook.com>

"James Pang (chaolpan)" <chaolpan@cisco.com> writes:
>   We just switch from Oracle to PGV13, all of these tables got partition (256 HASH partition) ,  when UPDATE/DELETE ... WHERE . The memory increase verify quickly until >130M. not too much data in these tables.  When we switch to PGV14.5 , test again, still see similar memory consumption issue.

I see no particular reason to think this is a bug.  If you have a
lot of partitions, there is going to be a lot of metadata for them.
Moreover, HASH partitioning is effectively incapable of being
pruned, so that every query is going to touch every partition.
(IMO, hash partitioning is basically never a good idea.)

			regards, tom lane





view thread (14+ messages)  latest in thread

Message-ID: <3950547.1662644877@sss.pgh.pa.us>
Permalink:  ../3950547.1662644877@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3950547.1662644877@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, chaolpan@cisco.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: huge memory of Postgresql backend process
  In-Reply-To: <3950547.1662644877@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