Re: work_mem

From: SASIKUMAR Devaraj <sashikumard(at)yahoo(dot)com>
To: holger(at)jakobs(dot)com, Holger Jakobs <holger(at)jakobs(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: work_mem
Date: 2021-04-02 12:37:43
Message-ID: 66290583.2329958.1617367063840@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi All
As soon as client session is established work_mem will be allocated or only when sort happens for that particular session? Please advise how the internal behavior? This will help me to configure my database memory with high connections
Regards
Sasi

Sent from Yahoo Mail on Android

On Wed, Mar 31, 2021 at 8:52 PM, Holger Jakobs<holger(at)jakobs(dot)com> wrote: #yiv2643575322 #yiv2643575322 -- _filtered {} _filtered {} _filtered {}#yiv2643575322 #yiv2643575322 p.yiv2643575322MsoNormal, #yiv2643575322 li.yiv2643575322MsoNormal, #yiv2643575322 div.yiv2643575322MsoNormal {margin:0in;font-size:12.0pt;font-family:sans-serif;}#yiv2643575322 span.yiv2643575322EmailStyle17 {font-family:sans-serif;color:windowtext;}#yiv2643575322 .yiv2643575322MsoChpDefault {font-size:12.0pt;font-family:sans-serif;} _filtered {}#yiv2643575322 div.yiv2643575322WordSection1 {}#yiv2643575322 You can show any or all settings with the command SHOW.

show work_mem;
show all;

How many times the amount of work_mem has been allocated currently cannot be shown this way. Any sort operation running currently allocates it. So it is not identical with the number of current queries, because queries can allocate it several times.

Am 31. März 2021 16:04:07 MESZ schrieb "Campbell, Lance" <lance(at)illinois(dot)edu>:

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?  

 

Thanks,

 

LANCE CAMPBELL

 

Web Services

Public Affairs

 

 


 

Under the Illinois Freedom of Information Act any written communication to or from university employees regarding university business is a public record and may be subject to public disclosure.

 

--
Holger Jakobs, Bergisch Gladbach
+49 178 9759012
- sent from mobile, therefore short -

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message MichaelDBA 2021-04-02 12:39:18 Re: work_mem
Previous Message Hotmail 2021-04-01 17:28:55 pg_stat_activity with null wait events and null wait_event_types