Re: work_mem

From: Sachin Kumar <sachinkumaras(at)gmail(dot)com>
To: Holger Jakobs <holger(at)jakobs(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: work_mem
Date: 2021-04-01 07:43:38
Message-ID: CALg-PKD8YD4Pq52Z1tWDF5F+C_BQdOTT7X_GhVBXq8RRgqP81w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Mr. Holger,

what is the setting that needs to be changed in the PostgreSQL 13
configuration to use it more efficiently?

I had just updated work_mem TO '256MB' my PC RAM is 32 GB; anything else we
need to do to make POSTGRESQL performance better.

Please advise in detail it will help all PostgreSQL users.

Thanks in advance
Sachin Kumar

On Wed, Mar 31, 2021 at 8:52 PM Holger Jakobs <holger(at)jakobs(dot)com> wrote:

> 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/>
>>
>>
>>
>>
>>
>> [image:
>> /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 -
>

--

Best Regards,
Sachin Kumar

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Firthouse banu 2021-04-01 08:41:12 Equivalent of or condition in where clause
Previous Message Muhammad SUDARMAN 2021-04-01 06:53:34 Re: Thank you!