Re: work_mem

From: Holger Jakobs <holger(at)jakobs(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: work_mem
Date: 2021-03-31 15:22:04
Message-ID: 04D84259-1B75-4648-949F-78677916194E@jakobs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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<https://directory.illinois.edu/person/lance>
>
>Web Services<https://webtools.illinois.edu/>
>Public Affairs<https://publicaffairs.illinois.edu/>
>
>
>[/var/folders/wp/1f6l7hw95y718z976kgnl5f9kr5rtc/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/signature_logo.png]<http://illinois.edu/>
>
>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

  • work_mem at 2021-03-31 14:04:07 from Campbell, Lance

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Hotmail 2021-03-31 16:00:28 Re: Performance bottleneck. High active sessions but postmaster kernel threads are in a sleep state, low CPU utilization
Previous Message MichaelDBA 2021-03-31 14:58:15 Re: Performance bottleneck. High active sessions but postmaster kernel threads are in a sleep state, low CPU utilization