Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRbf1-0002HO-HO for pgsql-admin@arkaria.postgresql.org; Wed, 31 Mar 2021 14:17:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRbf0-0007NA-Bu for pgsql-admin@arkaria.postgresql.org; Wed, 31 Mar 2021 14:17:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRbf0-0007N3-4O for pgsql-admin@lists.postgresql.org; Wed, 31 Mar 2021 14:17:30 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRbev-0002iX-Vp for pgsql-admin@lists.postgresql.org; Wed, 31 Mar 2021 14:17:29 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1lRbeu-0001zy-4O; Wed, 31 Mar 2021 10:17:24 -0400 Date: Wed, 31 Mar 2021 10:17:24 -0400 From: Bruce Momjian To: "Campbell, Lance" Cc: "pgsql-admin@lists.postgresql.org" Subject: Re: work_mem Message-ID: <20210331141724.GC11609@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 31, 2021 at 02:04:07PM +0000, Campbell, Lance wrote: > PostgreSQL 12 > > > > Is there a query that will tell us at any given time what amount of PostgreSQL > memory is being used for work_mem? Well, you can look at the process memory usage via 'ps', but I don't know a way to see current work_mem allocation. SHOW work_mem does show the current setting, but that isn't the allocated amount. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.